Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Dec 3, 2023
1 parent b1fbd65 commit c59b34c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.18.1@dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb"/>
<files psalm-version="5.16.0@2897ba636551a8cb61601cc26f6ccfbba6c36591"/>
4 changes: 1 addition & 3 deletions src/SonataCKEditorBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@

use Symfony\Component\HttpKernel\Bundle\Bundle;

final class SonataCKEditorBundle extends Bundle
{
}
final class SonataCKEditorBundle extends Bundle {}
14 changes: 7 additions & 7 deletions tests/Admin/MediaAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@ final class MediaAdminTest extends IntegrationTestCase
{
public function testBrowse(): void
{
$client = static::createClient();
$client = self::createClient();
$client->request('GET', '/admin/tests/app/media/ckeditor-browse');

static::assertResponseIsSuccessful();
self::assertResponseIsSuccessful();
}

public function testUpload(): void
{
$uploadedFile = $this->createUploadFile();

$client = static::createClient();
$client = self::createClient();
$client->request('POST', '/admin/tests/app/media/ckeditor-upload?provider=sonata.media.provider.file&CKEditorFuncNum=callBack', [
], [
'upload' => $uploadedFile,
]);

$response = $client->getResponse()->getContent();

static::assertResponseIsSuccessful();
static::assertIsString($response);
static::assertStringContainsString('.txt', $response);
static::assertStringContainsString('callBack', $response);
self::assertResponseIsSuccessful();
self::assertIsString($response);
self::assertStringContainsString('.txt', $response);
self::assertStringContainsString('callBack', $response);
}

private function createUploadFile(): UploadedFile
Expand Down
4 changes: 2 additions & 2 deletions tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testOptions(): void
],
];

static::assertSame($expected, $config);
self::assertSame($expected, $config);
}

public function testOptionsWithDisabledAutoConfig(): void
Expand All @@ -61,6 +61,6 @@ public function testOptionsWithDisabledAutoConfig(): void
],
];

static::assertSame($expected, $config);
self::assertSame($expected, $config);
}
}
2 changes: 1 addition & 1 deletion tests/DependencyInjection/SonataCKEditorExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function testLoadWithTwigExtension(): void
],
];

static::assertSame($expected, $container->getExtensionConfig('fos_ck_editor')[0]);
self::assertSame($expected, $container->getExtensionConfig('fos_ck_editor')[0]);
}

protected function getContainerExtensions(): array
Expand Down
2 changes: 1 addition & 1 deletion tests/SonataCKEditorBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ protected function setUp(): void

public function testCompilerPasses(): void
{
static::assertInstanceOf(SonataCKEditorExtension::class, $this->bundle->getContainerExtension());
self::assertInstanceOf(SonataCKEditorExtension::class, $this->bundle->getContainerExtension());
}
}

0 comments on commit c59b34c

Please sign in to comment.