Files
yii2/tests/framework/db/oci/QueryTest.php
Carsten Brandt 8ba032d147 refactored database tests
- changed test class naming for easier copying and searching of classes
- made base tests abstract and made MySQL an equal citisen in the test
  hierarchie
- added missing db specific test classes
2016-06-20 19:26:43 +02:00

26 lines
542 B
PHP

<?php
namespace yiiunit\framework\db\oci;
use yii\db\Query;
/**
* @group db
* @group oci
*/
class QueryTest extends \yiiunit\framework\db\QueryTest
{
protected $driverName = 'oci';
public function testOne()
{
$db = $this->getConnection();
$result = (new Query)->from('customer')->where(['[[status]]' => 2])->one($db);
$this->assertEquals('user3', $result['name']);
$result = (new Query)->from('customer')->where(['[[status]]' => 3])->one($db);
$this->assertFalse($result);
}
}