1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-31 10:54:46 +03:00

Call PHPUnit static methods using static calls

Replaces $this->method() with self::method().

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth
2024-01-12 14:03:46 -03:00
parent ac325d20ff
commit ba72f543fd
385 changed files with 6674 additions and 6686 deletions

View File

@@ -23,16 +23,16 @@ class JavaScriptMessagesControllerTest extends TestCase
{
$response = (new JavaScriptMessagesController(ResponseFactory::create()))();
$actual = (string) $response->getBody();
$this->assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
self::assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode());
$this->assertStringStartsWith('window.Messages = {', $actual);
$this->assertStringEndsWith('};', $actual);
self::assertStringStartsWith('window.Messages = {', $actual);
self::assertStringEndsWith('};', $actual);
$json = substr($actual, strlen('window.Messages = '), -1);
$array = json_decode($json, true);
$this->assertIsArray($array);
$this->assertArrayHasKey('strDoYouReally', $array);
$this->assertEquals('Do you really want to execute "%s"?', $array['strDoYouReally']);
self::assertIsArray($array);
self::assertArrayHasKey('strDoYouReally', $array);
self::assertEquals('Do you really want to execute "%s"?', $array['strDoYouReally']);
}
}