Guest User

Untitled

a guest
Feb 17th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. <phpunit bootstrap="./core/tests/bootstrap.php" colors="true"
  2. beStrictAboutTestsThatDoNotTestAnything="true"
  3. beStrictAboutOutputDuringTests="true"
  4. beStrictAboutChangesToGlobalState="true"
  5. printerClass="DrupalTestsListenersHtmlOutputPrinter">
  6.  
  7. <env name="PHP_IDE_CONFIG" value="PHPSTORM"/>
  8.  
  9. <php>
  10. <!-- Set error reporting to E_ALL. -->
  11. <ini name="error_reporting" value="32767"/>
  12. <!-- Do not limit the amount of memory tests take to run. -->
  13. <ini name="memory_limit" value="-1"/>
  14. <!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
  15. <env name="SIMPLETEST_BASE_URL" value="http://intellipass:8888/"/>
  16. <!--Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
  17. <env name="SIMPLETEST_DB" value="sqlite://localhost//sites/default/files/db.sqlite"/>
  18. <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
  19. <env name="BROWSERTEST_OUTPUT_DIRECTORY" value="/tmp"/>
  20. </php>
  21.  
  22. <testsuites>
  23. <testsuite name="Intellipass Functional Test Suite">
  24. <directory>./modules/custom/intellipass/tests/src/Functional</directory>
  25. </testsuite>
  26. </testsuites>
  27.  
  28. </phpunit>
  29.  
  30. <?php
  31.  
  32. namespace DrupalTestsintellipassFunctional;
  33.  
  34. use DrupalTestsBrowserTestBase;
  35.  
  36. class EncryptionSecretTest extends BrowserTestBase {
  37.  
  38. /**
  39. * Modules to install.
  40. *
  41. * @var array
  42. */
  43. public static $modules = ['system', 'intellipass'];
  44.  
  45. protected function setUp() {
  46. parent::setUp();
  47. }
  48.  
  49. /**
  50. * Tests comments in book export.
  51. */
  52. public function testRedirect() {
  53. $authenticatedUser = $this->drupalCreateUser();
  54. $this->drupalLogin($authenticatedUser);
  55. }
  56.  
  57. }
  58.  
  59. ./phpunit-4.8.9.phar --testsuite="Intellipass Functional Test Suite"
  60.  
  61. peter@NB32 intellipass (master) $ ./phpunit-4.8.9.phar --testsuite="Intellipass Functional Test Suite"
  62. PHPUnit 4.8.9 by Sebastian Bergmann and contributors.
  63.  
  64. E
  65.  
  66. Time: 3.73 seconds, Memory: 10.00Mb
  67.  
  68. There was 1 error:
  69.  
  70. 1) DrupalTestsintellipassFunctionalEncryptionSecretTest::testRedirect
  71. Exception: PDOException: SQLSTATE[HY000] [2002] Connection refused
  72. DrupalComponentDependencyInjectionPhpArrayContainer->createService()() (Line: 79)
  73.  
  74.  
  75. /Users/peter/DevPrivat/intellipass/core/lib/Drupal/Core/Test/HttpClientMiddleware/TestHttpClientMiddleware.php:44
  76. /Users/peter/DevPrivat/intellipass/vendor/guzzlehttp/promises/src/Promise.php:203
  77. /Users/peter/DevPrivat/intellipass/vendor/guzzlehttp/promises/src/Promise.php:156
  78. /Users/peter/DevPrivat/intellipass/vendor/guzzlehttp/promises/src/TaskQueue.php:47
  79. /Users/peter/DevPrivat/intellipass/vendor/guzzlehttp/promises/src/Promise.php:246
  80. /Users/peter/DevPrivat/intellipass/vendor/guzzlehttp/promises/src/Promise.php:223
  81. /Users/peter/DevPrivat/intellipass/vendor/guzzlehttp/promises/src/Promise.php:267
  82. /Users/peter/DevPrivat/intellipass/vendor/guzzlehttp/promises/src/Promise.php:225
  83. /Users/peter/DevPrivat/intellipass/vendor/guzzlehttp/promises/src/Promise.php:62
  84. /Users/peter/DevPrivat/intellipass/vendor/guzzlehttp/guzzle/src/Client.php:131
  85. /Users/peter/DevPrivat/intellipass/vendor/fabpot/goutte/Goutte/Client.php:155
  86. /Users/peter/DevPrivat/intellipass/vendor/symfony/browser-kit/Client.php:312
  87. /Users/peter/DevPrivat/intellipass/vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php:144
  88. /Users/peter/DevPrivat/intellipass/vendor/behat/mink/src/Session.php:148
  89. /Users/peter/DevPrivat/intellipass/core/tests/Drupal/Tests/BrowserTestBase.php:333
  90. /Users/peter/DevPrivat/intellipass/core/tests/Drupal/Tests/BrowserTestBase.php:472
  91. /Users/peter/DevPrivat/intellipass/modules/custom/intellipass/tests/src/Functional/EncryptionSecretTest.php:17
  92. /Users/peter/DevPrivat/intellipass/vendor/phpunit/phpunit/src/Framework/TestCase.php:764
  93. /Users/peter/DevPrivat/intellipass/vendor/phpunit/phpunit/src/Framework/TestResult.php:612
  94. /Users/peter/DevPrivat/intellipass/vendor/phpunit/phpunit/src/Framework/TestCase.php:724
  95.  
  96. FAILURES!
  97. Tests: 1, Assertions: 1, Errors: 1.
Add Comment
Please, Sign In to add comment