Skip to content

Conversation

@docteurklein
Copy link
Contributor

No description provided.

$fileResource = fopen('php://memory', 'r');
$fileSystem->getResourceFromPath(Argument::any())->shouldNotBeCalled();

$product = [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

productModel


$mediaFiles = $api->listPerPage(10)->getItems();

$this->assertCount(5, $mediaFiles);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will break the test if we add a media in the fixtures, maybe just iterate the items to check that it exists.
(by copy + rename original filename just for the test for example)

Signed-off-by: Klein Florian <florian.klein@free.fr>
@docteurklein docteurklein merged commit 47a0aad into master Jan 18, 2018
@docteurklein docteurklein deleted the API-543 branch January 18, 2018 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants