/** * Tests Mysql::listTables * * @author Serghei Iakovlev <*****@*****.**> * @since 2016-08-03 */ public function testListTables() { $this->specify('List all tables on a database does not return correct result', function () { $expected = ['albums', 'artists', 'childs', 'customers', 'issue12071_body', 'issue12071_head', 'issue_11036', 'issue_1534', 'issue_2019', 'm2m_parts', 'm2m_robots', 'm2m_robots_parts', 'package_details', 'packages', 'parts', 'personas', 'personnes', 'ph_select', 'prueba', 'robots', 'robots_parts', 'songs', 'subscriptores', 'tipo_documento', 'users']; expect($this->connection->listTables())->equals($expected); expect($this->connection->listTables(TEST_DB_MYSQL_NAME))->equals($expected); }); }