/** * @param ArtifactType $artifactType * @return array|ArtifactCollection */ public function getAllByType(ArtifactType $artifactType) { try { $response = $this->getGetResponseFromEndpoint('/' . $artifactType->getName()); return $this->buildArtifactListFromJson($response->json()); } catch (EntityNotFoundException $e) { return new ArtifactCollection(); } }
/** * @test */ public function verifyGetterAndSetter() { $this->entity->setName('topseller'); $this->assertEquals($this->entity->getName(), 'topseller'); }