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