/** * Test getting entity back from context. * * @return void */ public function testEntity() { $row = new Article(); $context = new EntityContext($this->request, ['entity' => $row]); $this->assertSame($row, $context->entity()); }