Skip to content

Commit

Permalink
Naming Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tliokos committed Apr 11, 2019
1 parent 84357d0 commit 6ce2e9c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Spryker/Client/ContentProduct/ContentProductClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class ContentProductClient extends AbstractClient implements ContentProductClien
*
* @return \Generated\Shared\Transfer\ContentProductAbstractListTypeTransfer|null
*/
public function findContentProductAbstractListTypeById(int $idContent, string $localeName): ?ContentProductAbstractListTypeTransfer
public function executeProductAbstractListTypeById(int $idContent, string $localeName): ?ContentProductAbstractListTypeTransfer
{
return $this->getFactory()
->createContentProductAbstractListTypeMapper()
->findContentProductAbstractListTypeById($idContent, $localeName);
->executeProductAbstractListTypeById($idContent, $localeName);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ interface ContentProductClientInterface
*
* @return \Generated\Shared\Transfer\ContentProductAbstractListTypeTransfer|null
*/
public function findContentProductAbstractListTypeById(int $idContent, string $localeName): ?ContentProductAbstractListTypeTransfer;
public function executeProductAbstractListTypeById(int $idContent, string $localeName): ?ContentProductAbstractListTypeTransfer;
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(ContentProductToContentStorageClientInterface $conte
*
* @return \Generated\Shared\Transfer\ContentProductAbstractListTypeTransfer|null
*/
public function findContentProductAbstractListTypeById(int $idContent, string $localeName): ?ContentProductAbstractListTypeTransfer
public function executeProductAbstractListTypeById(int $idContent, string $localeName): ?ContentProductAbstractListTypeTransfer
{
$contentTypeContextTransfer = $this->contentStorageClient->findContentTypeContext($idContent, $localeName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ interface ContentProductAbstractListTypeMapperInterface
*
* @return \Generated\Shared\Transfer\ContentProductAbstractListTypeTransfer|null
*/
public function findContentProductAbstractListTypeById(int $idContent, string $localeName): ?ContentProductAbstractListTypeTransfer;
public function executeProductAbstractListTypeById(int $idContent, string $localeName): ?ContentProductAbstractListTypeTransfer;
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function testFindContentProductValidTransfer()

// Act
$systemUnderTest = $this->createContentProductClient()
->findContentProductAbstractListTypeById(static::ID_CONTENT_ITEM, static::LOCALE);
->executeProductAbstractListTypeById(static::ID_CONTENT_ITEM, static::LOCALE);

// Assert
$this->assertEquals(ContentProductAbstractListTypeTransfer::class, get_class($systemUnderTest));
Expand All @@ -89,7 +89,7 @@ public function testFindContentItemWithWrongTermThrowsException()
$this->expectException(InvalidProductAbstractListTermException::class);

// Act
$this->createContentProductClient()->findContentProductAbstractListTypeById(static::ID_CONTENT_ITEM, static::LOCALE);
$this->createContentProductClient()->executeProductAbstractListTypeById(static::ID_CONTENT_ITEM, static::LOCALE);
}

/**
Expand All @@ -102,7 +102,7 @@ public function testFindNotExistingContentProduct()

// Act
$systemUnderTest = $this->createContentProductClient()
->findContentProductAbstractListTypeById(static::ID_CONTENT_ITEM, static::LOCALE);
->executeProductAbstractListTypeById(static::ID_CONTENT_ITEM, static::LOCALE);

// Assert
$this->assertNull($systemUnderTest);
Expand Down

0 comments on commit 6ce2e9c

Please sign in to comment.