/** * Tests that an exception is thrown when trying to use an empty ID for lookup. * * @expectedException \InvalidArgumentException */ public function testFindByEmptyId() { $this->repository->findOneById(''); }