public function testHasCache() { Reflection::setPropertyValue($this->response, 'boolCache', true); $this->assertTrue($this->response->hasCache()); }
/** * @expectedException InvalidArgumentException */ public function testGetConnectionInstanceInvalidArgumentException() { Reflection::setPropertyValue($this->db, 'connection', null); $this->assertTrue($this->db->getConnectionInstance() instanceof Connection); }
public function testGetAction() { Reflection::setPropertyValue($this->app->route(), 'params', ['action' => 'index']); $this->assertEquals('index', $this->request->getAction()); }