public function load($uuid) { $deploymentNodes = $this->findAll(); if (array_key_exists($uuid, $deploymentNodes)) { return $deploymentNodes[$uuid]; } }
/** * Test if the load() method returns the NULL for an invalid primary key. * * @return null */ public function testLoadWithInvalidPrimaryKey() { $this->assertNull($this->service->load('invalidPrimaryKey')); }