tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php 1 location
|
@@ 912-917 (lines=6) @@
|
909 |
|
protected function assertHasTable($tables, $tableName) |
910 |
|
{ |
911 |
|
$foundTable = false; |
912 |
|
foreach ($tables as $table) { |
913 |
|
self::assertInstanceOf('Doctrine\DBAL\Schema\Table', $table, 'No Table instance was found in tables array.'); |
914 |
|
if (strtolower($table->getName()) == 'list_tables_test_new_name') { |
915 |
|
$foundTable = true; |
916 |
|
} |
917 |
|
} |
918 |
|
self::assertTrue($foundTable, "Could not find new table"); |
919 |
|
} |
920 |
|
|
tests/Doctrine/Tests/DBAL/Functional/Schema/PostgreSqlSchemaManagerTest.php 1 location
|
@@ 339-344 (lines=6) @@
|
336 |
|
$tables = $this->_sm->listTables(); |
337 |
|
|
338 |
|
$foundTable = false; |
339 |
|
foreach ($tables as $table) { |
340 |
|
self::assertInstanceOf('Doctrine\DBAL\Schema\Table', $table, 'No Table instance was found in tables array.'); |
341 |
|
if (strtolower($table->getName()) == 'list_tables_excludes_views_test_view') { |
342 |
|
$foundTable = true; |
343 |
|
} |
344 |
|
} |
345 |
|
|
346 |
|
self::assertFalse($foundTable, 'View "list_tables_excludes_views_test_view" must not be found in table list'); |
347 |
|
} |