ソースを参照

PHPUnit requires TestCase classes to end in Test

Corey Taylor 4 年 前
コミット
103f5aebe0

+ 3 - 3
tests/TestCase/Database/QueryTests/AggregatesQueryTests.php

@@ -22,9 +22,9 @@ use Cake\Datasource\ConnectionManager;
 use Cake\TestSuite\TestCase;
 
 /**
- * Tests AggregateExpression queries class
+ * Tests AggregateExpression queries
  */
-class AggregatesQueryTests extends TestCase
+class AggregatesQueryTest extends TestCase
 {
     protected $fixtures = [
         'core.Comments',
@@ -68,6 +68,6 @@ class AggregatesQueryTests extends TestCase
             ->from('comments')
             ->execute()
             ->fetchAll('assoc');
-        $this->assertSame(2, $result[0]['num_rows']);
+        $this->assertSame(2, (int)$result[0]['num_rows']);
     }
 }

+ 1 - 1
tests/TestCase/Database/QueryTests/CommonTableExpressionQueryTests.php

@@ -27,7 +27,7 @@ use Cake\Database\ValueBinder;
 use Cake\Datasource\ConnectionManager;
 use Cake\TestSuite\TestCase;
 
-class CommonTableExpressionQueryTests extends TestCase
+class CommonTableExpressionQueryTest extends TestCase
 {
     /**
      * @inheritDoc

+ 1 - 1
tests/TestCase/Database/QueryTests/WindowQueryTests.php

@@ -29,7 +29,7 @@ use RuntimeException;
 /**
  * Tests WindowExpression class
  */
-class WindowQueryTests extends TestCase
+class WindowQueryTest extends TestCase
 {
     protected $fixtures = [
         'core.Comments',