public function testDropView() { $fluent_array = $this->blueprint->dropView()->toArray(); $fluent_expected = ['name' => 'dropView']; $this->assertEquals($fluent_expected, $fluent_array); $grammar = new PostgresGrammar(); $this->assertEquals(['drop view "some_table"'], $this->blueprint->toSql($this->connection, $grammar)); }
protected function setUp() { $this->grammar = new PostgresGrammar(); $this->blueprint = $this->createMock(Blueprint::class); $this->blueprint->method('getTable')->willReturn('some_table'); }