Example #1
0
 public function testRetrieveReturnsProfile()
 {
     $profile = Profile::create();
     $this->mongoCollection->shouldReceive('findOne')->once()->andReturn(array('identifier' => $profile->getIdentifier(), 'profile' => serialize($profile->toArray())));
     $this->assertInstanceOf('\\Link0\\Profiler\\Profile', $this->handler->retrieve('Foo'));
 }