/** * @group view */ public function testDropView() { try { $this->object->dropView(''); $this->fail('dropView does not accept empty string for view name!'); } catch (Phigrate_Exception_Argument $ex) { $msg = 'Missing view name parameter'; $this->assertEquals($msg, $ex->getMessage()); } $this->object->setExport(true); $expected = 'DROP VIEW IF EXISTS `v_users`;'; $this->object->dropView('v_users'); $actual = $this->object->getSql(); $this->assertStringStartsWith($expected, $actual); }