Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

added tests for replacing on image directly #9

Open
wants to merge 1 commit into
base: 8.x-2.x
Choose a base branch
from
Open

added tests for replacing on image directly #9

wants to merge 1 commit into from

Conversation

tassilogroeper
Copy link
Contributor

Only a start. Replace an image with another one and check file size.
@todo: add image field on a node and replace this image to ensure further dimension recalculation

public function testReplaceImageFile() {
// Select the first image test file to use.
$original = $this->files['image'][1];
$this->assertEqual($original->getFilename(), 'image-test-transparent-indexed.gif');
Copy link
Member

Choose a reason for hiding this comment

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

Let's add meaningful assert messages. This applies to the entire PR.

@slashrsm
Copy link
Member

slashrsm commented Dec 4, 2015

It seems that testReplaceFile() is doing very similar things. Should we merge both functions?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants