/** * Test the setting of the Request on init of the model * * @covers \MasheryApi\Model::__construct * @covers \MasheryApi\Model::setRequest */ public function testSetRequestOnConstruct() { $request = new \MasheryApi\Request(); $model = new \MockModel($request); $this->assertNotNull($model->getRequest()); $this->assertTrue($model->getRequest() instanceof \MasheryApi\Request); }