Skip to content

Commit

Permalink
Use local db to test hasDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Nov 17, 2015
1 parent 1e96768 commit ec5a437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ConnectionTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function testReconnectonnect()
public function testHasDatabase()
{
$this->assertFalse($this->connection->hasDatabase('__unknown__database__'));
$this->assertTrue($this->connection->hasDatabase('admin'));
$this->assertTrue($this->connection->hasDatabase('local'));
}

public function testDatabaseDefaultServer()
Expand All @@ -68,7 +68,7 @@ public function testListDatabases()
$list = $this->connection->listDatabases();

$this->assertInternalType('array', $list);
$this->assertContains('admin', $list);
$this->assertContains('local', $list);

$list = $this->connection->listDatabases(true);
$this->assertInternalType('array', $list);
Expand Down

0 comments on commit ec5a437

Please sign in to comment.