/** * Run tests to ensure the output is correct for set/getPickedUpBy * * @return void */ public function testPickedUpBy() { $user = $this->getMock('\\OpenSkedge\\AppBundle\\Entity\\User'); $sh = new Shift(); $sh->setPickedUpBy($user); $this->assertInstanceOf('\\OpenSkedge\\AppBundle\\Entity\\User', $sh->getPickedUpBy()); }