Пример #1
0
 /**
  * TableTest::testGetFieldInUse()
  *
  * @return void
  */
 public function testGetFieldInUse()
 {
     $this->skipIf(true, 'TODO');
     $this->db = ConnectionManager::getDataSource('test');
     $this->skipIf(!$this->db instanceof Mysql, 'The test is only compatible with Mysql.');
     $results = $this->Posts->getFieldInUse('author_id', 'list');
     $expected = [1 => 'First Post', 2 => 'Second Post'];
     $this->assertEquals($expected, $results);
 }