Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure tests also run without an internet connection #1

Open
ademarco opened this issue Sep 8, 2015 · 0 comments
Open

Make sure tests also run without an internet connection #1

ademarco opened this issue Sep 8, 2015 · 0 comments

Comments

@ademarco
Copy link
Member

ademarco commented Sep 8, 2015

Problem

Test would fail when ran wihtout an active internet connection. This is due to image fields using remote data sources. Test output is as below:

$ ./vendor/bin/phpunit 
PHPUnit 4.5.1 by Sebastian Bergmann and contributors.

Configuration read from .../integration/sites/all/modules/contrib/integration/phpunit.xml

.............F.....................

Time: 9.81 seconds, Memory: 32.50Mb

There was 1 failure:

1) Drupal\integration\Tests\Consumer\Migrate\ArticlesMigrationTest::testContentMigration
Failed asserting that 'http://placehold.it/300x150&text=English+1' contains "".

.../integration/sites/all/modules/contrib/integration/tests/Consumer/Migrate/ArticlesMigrationTest.php:58
.../integration/sites/all/modules/contrib/integration/vendor/phpunit/phpunit/phpunit:36

FAILURES!
Tests: 35, Assertions: 307, Failures: 1.

Solution

Make sure that all data used in tests is local taking into account that we only use http://placehold.it/ as remote data source.

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

No branches or pull requests

1 participant