Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function testGetConditionSource() |
||
45 | { |
||
46 | $types = array( 'column' => \Aimeos\MW\DB\Statement\Base::PARAM_BOOL); |
||
47 | $this->object->setConditions( $this->object->compare( '==', 'column', 0 ) ); |
||
48 | $this->assertEquals( "column = 'f'", $this->object->getConditionSource( $types ) ); |
||
49 | |||
50 | $types = array( 'column' => \Aimeos\MW\DB\Statement\Base::PARAM_BOOL); |
||
51 | $this->object->setConditions( $this->object->compare( '==', 'column', 1 ) ); |
||
52 | $this->assertEquals( "column = 't'", $this->object->getConditionSource( $types ) ); |
||
53 | } |
||
55 |