| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class PgSQLTest extends \PHPUnit\Framework\TestCase |
||
| 13 | { |
||
| 14 | private $object; |
||
| 15 | |||
| 16 | |||
| 17 | protected function setUp() |
||
| 18 | { |
||
| 19 | if( \TestHelperMw::getConfig()->get( 'resource/db/adapter', false ) === false ) { |
||
| 20 | $this->markTestSkipped( 'No database configured' ); |
||
| 21 | } |
||
| 22 | |||
| 23 | |||
| 24 | $dbm = \TestHelperMw::getDBManager(); |
||
| 25 | |||
| 26 | $conn = $dbm->acquire(); |
||
| 27 | $this->object = new \Aimeos\MW\Criteria\PgSQL( $conn ); |
||
| 28 | $dbm->release( $conn ); |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | protected function tearDown() |
||
| 33 | { |
||
| 34 | unset( $this->object ); |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | public function testCompare() |
||
| 39 | { |
||
| 40 | $this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Expression\\Compare\\PgSQL', $this->object->compare( '!=', 'name', 'value' ) ); |
||
| 41 | } |
||
| 42 | |||
| 43 | |||
| 44 | public function testGetConditionSource() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |