public function testBothParamsExistentInstanceNoCSRFToken() { $builder = FixtureBuilder::build('owners', array('id' => 51, 'email' => '*****@*****.**', 'is_active' => 0)); $this->simulateLogin('*****@*****.**', true, true); $_GET['oid'] = '51'; $_GET['a'] = '1'; $controller = new ToggleActiveOwnerController(true); try { $results = $controller->control(); $this->fail("should throw InvalidCSRFTokenException"); } catch (InvalidCSRFTokenException $e) { $this->assertIsA($e, 'InvalidCSRFTokenException'); } }