Browse Source

Fixing the names of testing functions

To make them look like the other test functions :)
Jozef Grencik 2 years ago
parent
commit
5c98d4bfab

+ 1 - 1
tests/TestCase/Database/Expression/TupleComparisonTest.php

@@ -30,7 +30,7 @@ class TupleComparisonTest extends TestCase
     /**
      * Tests generating a function with no arguments
      */
-    public function testsSimpleTuple(): void
+    public function testSimpleTuple(): void
     {
         $f = new TupleComparison(['field1', 'field2'], [1, 2], ['integer', 'integer'], '=');
         $binder = new ValueBinder();

+ 1 - 1
tests/TestCase/Error/Renderer/WebExceptionRendererTest.php

@@ -390,7 +390,7 @@ class WebExceptionRendererTest extends TestCase
     /**
      * test that error400 only modifies the messages on Cake Exceptions.
      */
-    public function testerror400OnlyChangingCakeException(): void
+    public function testError400OnlyChangingCakeException(): void
     {
         Configure::write('debug', false);
 

+ 1 - 1
tests/TestCase/Http/ServerRequestTest.php

@@ -693,7 +693,7 @@ class ServerRequestTest extends TestCase
     /**
      * Test AJAX, flash and friends
      */
-    public function testisAjax(): void
+    public function testIsAjax(): void
     {
         $request = new ServerRequest();
 

+ 1 - 1
tests/TestCase/Log/Engine/ConsoleLogTest.php

@@ -46,7 +46,7 @@ class ConsoleLogTest extends TestCase
     /**
      * Test writing to a file stream
      */
-    public function testlogToFileStream(): void
+    public function testLogToFileStream(): void
     {
         $filename = tempnam(sys_get_temp_dir(), 'cake_log_test');
         $log = new ConsoleLog([

+ 2 - 2
tests/TestCase/ORM/Locator/LocatorAwareTraitTest.php

@@ -79,7 +79,7 @@ class LocatorAwareTraitTest extends TestCase
         $this->assertSame('PaginatorPosts', $result->getAlias());
     }
 
-    public function testfetchTableException()
+    public function testFetchTableException(): void
     {
         $this->expectException(UnexpectedValueException::class);
         $this->expectExceptionMessage(
@@ -90,7 +90,7 @@ class LocatorAwareTraitTest extends TestCase
         $stub->fetchTable();
     }
 
-    public function testfetchTableExceptionForEmptyString()
+    public function testFetchTableExceptionForEmptyString(): void
     {
         $this->expectException(UnexpectedValueException::class);
         $this->expectExceptionMessage(

+ 1 - 1
tests/TestCase/ORM/Locator/TableLocatorTest.php

@@ -242,7 +242,7 @@ class TableLocatorTest extends TestCase
     /**
      * Test that get() uses config data set with getConfig()
      */
-    public function testGetWithgetConfig(): void
+    public function testGetWithGetConfig(): void
     {
         $this->_locator->setConfig('Articles', [
             'table' => 'my_articles',

+ 1 - 1
tests/TestCase/ORM/RulesCheckerIntegrationTest.php

@@ -51,7 +51,7 @@ class RulesCheckerIntegrationTest extends TestCase
      *
      * @group save
      */
-    public function testsSaveBelongsToWithValidationError(): void
+    public function testSaveBelongsToWithValidationError(): void
     {
         $entity = new Entity([
             'title' => 'A Title',