public function testBuildDeleteIndex()
 {
     $blueprint = new Blueprint('index');
     $blueprint->delete();
     $connection = Mockery::mock('Tamayo\\Stretchy\\Connection');
     $connection->shouldReceive('indexDelete')->once();
     $grammar = Mockery::mock('Tamayo\\Stretchy\\Index\\Grammar');
     $grammar->shouldReceive('compileIndexDelete')->once();
     $blueprint->build($connection, $grammar);
 }
Example #2
0
 /**
  * Execute the blueprint to build / modify the table.
  *
  * @param  \Tamayo\Stretch\Index\Blueprint $blueprint
  * @return void
  */
 protected function build(Blueprint $blueprint)
 {
     $blueprint->build($this->connection, $this->grammar);
 }