public function testTableExists() { $tableName = 'table'; $this->object->setTable($tableName, $tableName); $this->connection->expects($this->once())->method('isTableExists')->with($tableName)->will($this->returnValue(true)); $this->assertTrue($this->object->tableExists($tableName)); }
public function testSetTable() { $this->_model->setTable('test_name', 'test_real_name'); $this->assertEquals('test_real_name', $this->_model->getTable('test_name')); }