You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
561 B
26 lines
561 B
10 years ago
|
<?php
|
||
|
namespace yiiunit\framework\db\oci;
|
||
|
|
||
|
use yiiunit\framework\db\QueryTest;
|
||
|
use yii\db\Query;
|
||
|
|
||
|
/**
|
||
|
* @group db
|
||
|
* @group oci
|
||
|
*/
|
||
|
class OracleQueryTest extends 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);
|
||
|
}
|
||
|
}
|