public function testExecute()
 {
     $this->createTable('foo');
     $tableExists = new TableExistsCommand();
     $result = $tableExists->setConnection($this->connection)->setEventDispatcher($this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcher'))->setTable(new Table('foo'))->execute();
     $this->assertTrue($result);
 }
Example #2
0
 protected function tableExists($name)
 {
     $tableExists = new TableExistsCommand();
     return $tableExists->setConnection($this->connection)->setEventDispatcher($this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcher'))->setTable(new Table($name))->execute();
 }