/** * Tests the quoteName method. * * @param boolean $quoted The value of the quoted argument. * @param string $expected The expected result. * * @return void * * @since 11.3 * @dataProvider dataTestNullDate */ public function testNullDate($quoted, $expected) { $q = new JDatabaseQueryPostgresql($this->dbo); $this->assertEquals($expected, $q->nullDate($quoted)); }
/** * Tests the quoteName method. * * @param boolean $quoted The value of the quoted argument. * @param string $expected The expected result. * * @return void * * @since 11.3 * @dataProvider dataTestNullDate */ public function testNullDate($quoted, $expected) { $q = new JDatabaseQueryPostgresql($this->dbo); $this->assertThat($q->nullDate($quoted), $this->equalTo($expected), 'The nullDate method should be a proxy for the JDatabase::getNullDate method.'); }