tests/Doctrine/Tests/DBAL/Functional/Schema/PostgreSqlSchemaManagerTest.php 1 location
|
@@ 341-346 (lines=6) @@
|
| 338 |
|
$tables = $this->_sm->listTables(); |
| 339 |
|
|
| 340 |
|
$foundTable = false; |
| 341 |
|
foreach ($tables as $table) { |
| 342 |
|
self::assertInstanceOf('Doctrine\DBAL\Schema\Table', $table, 'No Table instance was found in tables array.'); |
| 343 |
|
if (strtolower($table->getName()) == 'list_tables_excludes_views_test_view') { |
| 344 |
|
$foundTable = true; |
| 345 |
|
} |
| 346 |
|
} |
| 347 |
|
|
| 348 |
|
self::assertFalse($foundTable, 'View "list_tables_excludes_views_test_view" must not be found in table list'); |
| 349 |
|
} |
tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php 1 location
|
@@ 902-907 (lines=6) @@
|
| 899 |
|
protected function assertHasTable($tables, $tableName) |
| 900 |
|
{ |
| 901 |
|
$foundTable = false; |
| 902 |
|
foreach ($tables as $table) { |
| 903 |
|
self::assertInstanceOf('Doctrine\DBAL\Schema\Table', $table, 'No Table instance was found in tables array.'); |
| 904 |
|
if (strtolower($table->getName()) == 'list_tables_test_new_name') { |
| 905 |
|
$foundTable = true; |
| 906 |
|
} |
| 907 |
|
} |
| 908 |
|
self::assertTrue($foundTable, "Could not find new table"); |
| 909 |
|
} |
| 910 |
|
|