コード例 #1
0
 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));
 }
コード例 #2
0
ファイル: SetupTest.php プロジェクト: aiesh/magento2
 public function testTableExists()
 {
     $this->assertTrue($this->_model->tableExists('store_website'));
     $this->assertFalse($this->_model->tableExists('core/website'));
 }
コード例 #3
0
ファイル: Tables.php プロジェクト: Doability/magento2dev
 public function isExists($tableName)
 {
     return $this->installer->tableExists($this->getFullName($tableName));
 }