2009-05-29 01:34:35 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\DBAL\Functional\Schema;
|
|
|
|
|
|
|
|
use Doctrine\DBAL\Schema;
|
|
|
|
|
|
|
|
require_once __DIR__ . '/../../../TestInit.php';
|
|
|
|
|
2009-06-15 22:25:47 +04:00
|
|
|
class PostgreSqlSchemaManagerTest extends SchemaManagerFunctionalTestCase
|
2009-05-29 01:34:35 +04:00
|
|
|
{
|
|
|
|
public function testListUsers()
|
|
|
|
{
|
|
|
|
$users = $this->_sm->listUsers();
|
|
|
|
$this->assertEquals(true, is_array($users));
|
|
|
|
$params = $this->_conn->getParams();
|
|
|
|
$testUser = $params['user'];
|
|
|
|
$found = false;
|
|
|
|
foreach ($users as $user) {
|
|
|
|
if ($user['user'] == $testUser) {
|
|
|
|
$found = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->assertEquals(true, $found);
|
|
|
|
}
|
|
|
|
}
|