Browse Source

Add extra assertion to the unit test

Val Bancer 6 years ago
parent
commit
41d562557a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/TestCase/Database/DriverTest.php

+ 3 - 1
tests/TestCase/Database/DriverTest.php

@@ -275,8 +275,10 @@ class DriverTest extends TestCase
      */
     public function testNewTableSchema()
     {
-        $actual = $this->driver->newTableSchema('articles');
+        $tableName = 'articles';
+        $actual = $this->driver->newTableSchema($tableName);
         $this->assertInstanceOf(TableSchema::class, $actual);
+        $this->assertEquals($tableName, $actual->name());
     }
 
     /**