tests/Doctrine/Tests/DBAL/Functional/Schema/PostgreSqlSchemaManagerTest.php 1 location
|
@@ 336-341 (lines=6) @@
|
333 |
|
$tables = $this->_sm->listTables(); |
334 |
|
|
335 |
|
$foundTable = false; |
336 |
|
foreach ($tables as $table) { |
337 |
|
self::assertInstanceOf('Doctrine\DBAL\Schema\Table', $table, 'No Table instance was found in tables array.'); |
338 |
|
if (strtolower($table->getName()) == 'list_tables_excludes_views_test_view') { |
339 |
|
$foundTable = true; |
340 |
|
} |
341 |
|
} |
342 |
|
|
343 |
|
self::assertFalse($foundTable, 'View "list_tables_excludes_views_test_view" must not be found in table list'); |
344 |
|
} |
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 |
|
|