/**
  * @test
  */
 public function itShouldReturnTrueOnIsView()
 {
     $table = new Table('user_status');
     $table->setView(true);
     $this->assertTrue($table->isView());
 }
Example #2
0
 /**
  * @param Table $table
  *
  * @return string
  */
 public function writeTable(Table $table)
 {
     $schema = $table->getSchema() ? "{$table->getSchema()}." : '';
     return $schema . $this->writeTableName($table);
 }