diff --git a/.travis.yml b/.travis.yml index 7badbd0..622e0f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,9 +44,9 @@ env: # Drupal specific variables. - DRUPAL_TI_DB="drupal_travis_db" - - DRUPAL_TI_DB_URL="mysql://root:@localhost/drupal_travis_db" + - DRUPAL_TI_DB_URL="mysql://root:@127.0.0.1/drupal_travis_db" # Note: Do not add a trailing slash here. - - DRUPAL_TI_WEBSERVER_URL="http://localhost" + - DRUPAL_TI_WEBSERVER_URL="http://127.0.0.1" - DRUPAL_TI_WEBSERVER_PORT="8080" # Simpletest specific commandline arguments, the DRUPAL_TI_SIMPLETEST_GROUP is appended at the end. @@ -68,7 +68,7 @@ env: - DRUPAL_TI_BEHAT_BROWSER="firefox" # PHPUnit specific commandline arguments. - - DRUPAL_TI_PHPUNIT_ARGS="" + - DRUPAL_TI_PHPUNIT_ARGS="-c ./phpunit.xml.dist" # Specifying the phpunit-core src/ directory is useful when e.g. a vendor/ # directory is present in the module directory, which phpunit would then # try to find tests in. This option is relative to $TRAVIS_BUILD_DIR. @@ -111,6 +111,7 @@ install: before_script: - drupal-ti before_script + - drush en views --yes script: - export SIMPLETEST_DB=mysql://root:@127.0.0.1/drupal_travis_db diff --git a/sms.info.yml b/sms.info.yml index 524bdb2..91a3dc7 100644 --- a/sms.info.yml +++ b/sms.info.yml @@ -8,3 +8,5 @@ configure: admin/config/smsframework dependencies: - telephone - dynamic_entity_reference +test_dependencies: + - views \ No newline at end of file diff --git a/tests/src/Kernel/SmsFrameworkViewsTest.php b/src/Tests/Kernel/SmsFrameworkViewsTest.php similarity index 99% rename from tests/src/Kernel/SmsFrameworkViewsTest.php rename to src/Tests/Kernel/SmsFrameworkViewsTest.php index d7898af..857b8e0 100644 --- a/tests/src/Kernel/SmsFrameworkViewsTest.php +++ b/src/Tests/Kernel/SmsFrameworkViewsTest.php @@ -1,6 +1,6 @@