From 016d84c4ef7b294f85d8664f759087899d179c83 Mon Sep 17 00:00:00 2001 From: dpi Date: Sun, 24 Apr 2016 19:09:55 +0800 Subject: [PATCH 01/10] test --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 32580f4..a647acd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -93,7 +93,7 @@ env: #- DRUPAL_TI_RUNNERS="phpunit simpletest behat" # Use phpunit-core to test modules with phpunit with Drupal 8 core. #- DRUPAL_TI_RUNNERS="phpunit-core" - - DRUPAL_TI_RUNNERS="simpletest" + - DRUPAL_TI_RUNNERS="phpunit-core simpletest" mysql: database: drupal_travis_db From e713adf77a1ecb03794100a08ef6e731190ddcc5 Mon Sep 17 00:00:00 2001 From: dpi Date: Sun, 24 Apr 2016 19:50:33 +0800 Subject: [PATCH 02/10] added missing SIMPLETEST_DB variable --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index a647acd..7badbd0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,6 +113,7 @@ before_script: - drupal-ti before_script script: + - export SIMPLETEST_DB=mysql://root:@127.0.0.1/drupal_travis_db - drupal-ti script after_script: From c9e370be6f82c88f61908222fee94068d22ded92 Mon Sep 17 00:00:00 2001 From: dpi Date: Tue, 26 Apr 2016 08:53:38 +0800 Subject: [PATCH 03/10] testing --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7badbd0..d392edc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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. From 5a98958c0f9576a358d3993aec91bd766f5967de Mon Sep 17 00:00:00 2001 From: dpi Date: Tue, 3 May 2016 20:38:45 +0800 Subject: [PATCH 04/10] test --- tests/src/Kernel/SmsFrameworkViewsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Kernel/SmsFrameworkViewsTest.php b/tests/src/Kernel/SmsFrameworkViewsTest.php index 9c5df28..5e78519 100644 --- a/tests/src/Kernel/SmsFrameworkViewsTest.php +++ b/tests/src/Kernel/SmsFrameworkViewsTest.php @@ -21,7 +21,7 @@ class SmsFrameworkViewsTest extends ViewsKernelTestBase { use SmsFrameworkTestTrait; - public static $modules = ['user', 'sms', 'sms_test_gateway', 'sms_test_views', 'telephone', 'dynamic_entity_reference', 'field']; + public static $modules = ['views', 'user', 'sms', 'sms_test_gateway', 'sms_test_views', 'telephone', 'dynamic_entity_reference', 'field']; /** * Views used by this test. From d8346b1c3a1653c03c258e12fb5453225438a8b7 Mon Sep 17 00:00:00 2001 From: dpi Date: Wed, 4 May 2016 10:09:22 +0800 Subject: [PATCH 05/10] test_dependencies??? --- sms.info.yml | 2 ++ 1 file changed, 2 insertions(+) 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 From 37e9479e8ee68b0e72b18ebd3ce77e17afa95baa Mon Sep 17 00:00:00 2001 From: dpi Date: Wed, 4 May 2016 17:24:23 +0800 Subject: [PATCH 06/10] profile? --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d392edc..a219b84 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,7 +40,7 @@ env: - DRUPAL_TI_ENVIRONMENT="drupal-8" # The installation profile to use: - #- DRUPAL_TI_INSTALL_PROFILE="testing" + - DRUPAL_TI_INSTALL_PROFILE="testing" # Drupal specific variables. - DRUPAL_TI_DB="drupal_travis_db" From fab663fe2165ca73ef698ec3d8fb7ef55ff6faf8 Mon Sep 17 00:00:00 2001 From: dpi Date: Wed, 4 May 2016 18:13:37 +0800 Subject: [PATCH 07/10] 127 --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a219b84..a91c6b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,13 +40,13 @@ env: - DRUPAL_TI_ENVIRONMENT="drupal-8" # The installation profile to use: - - DRUPAL_TI_INSTALL_PROFILE="testing" + #- DRUPAL_TI_INSTALL_PROFILE="testing" # 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. From 4d55571bff14aace85d707924b3142176f62c591 Mon Sep 17 00:00:00 2001 From: dpi Date: Wed, 4 May 2016 18:16:07 +0800 Subject: [PATCH 08/10] views? --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index a91c6b4..8bb0fcf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -111,6 +111,7 @@ install: before_script: - drupal-ti before_script + - drush en views --yesv script: - export SIMPLETEST_DB=mysql://root:@127.0.0.1/drupal_travis_db From 5f1b3b869d2a61a2de2ee744d1527db178ab7234 Mon Sep 17 00:00:00 2001 From: dpi Date: Wed, 4 May 2016 18:33:31 +0800 Subject: [PATCH 09/10] move --- {tests/src => src/Tests}/Kernel/SmsFrameworkViewsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename {tests/src => src/Tests}/Kernel/SmsFrameworkViewsTest.php (99%) 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 5e78519..5bedc38 100644 --- a/tests/src/Kernel/SmsFrameworkViewsTest.php +++ b/src/Tests/Kernel/SmsFrameworkViewsTest.php @@ -1,6 +1,6 @@ Date: Wed, 4 May 2016 18:36:23 +0800 Subject: [PATCH 10/10] speling --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8bb0fcf..622e0f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -111,7 +111,7 @@ install: before_script: - drupal-ti before_script - - drush en views --yesv + - drush en views --yes script: - export SIMPLETEST_DB=mysql://root:@127.0.0.1/drupal_travis_db