diff --git a/src/NT/Drupal/Testing/Fixtures/fixture_helper.php b/src/NT/Drupal/Testing/Fixtures/fixture_helper.php index 816c3be..cef4733 100644 --- a/src/NT/Drupal/Testing/Fixtures/fixture_helper.php +++ b/src/NT/Drupal/Testing/Fixtures/fixture_helper.php @@ -11,6 +11,7 @@ class fixture_helper { protected $object_list = array(); protected function __construct() {} + protected function __clone() {} public static function getInstance() { diff --git a/src/NT/Drupal/Testing/Fixtures/fixtures.php b/src/NT/Drupal/Testing/Fixtures/fixtures.php index 9e00766..8663e27 100644 --- a/src/NT/Drupal/Testing/Fixtures/fixtures.php +++ b/src/NT/Drupal/Testing/Fixtures/fixtures.php @@ -13,6 +13,7 @@ public function __construct() { $node = $this->parseData($data); $this::$data = $node; } + /** * Parse the data into a node. * @@ -44,6 +45,7 @@ protected function parseData($data) { } return $node; } + /** * Get the current data for this fixture. * @@ -53,12 +55,14 @@ protected function parseData($data) { public function getData() { return $this::$data; } + /** * Reset this fixture to have nid of NULL. */ public function reset() { $this::$nid = NULL; } + /** * Main function to create a fixture. * @@ -72,6 +76,7 @@ public function run() { } return $this::$nid; } + /** * Install node. * diff --git a/src/NT/Drupal/Testing/PHPUnit/drupal_test_case.php b/src/NT/Drupal/Testing/PHPUnit/drupal_test_case.php index 197ceeb..285a220 100644 --- a/src/NT/Drupal/Testing/PHPUnit/drupal_test_case.php +++ b/src/NT/Drupal/Testing/PHPUnit/drupal_test_case.php @@ -177,7 +177,6 @@ protected function pass($message = NULL, $group = 'Other') { return $this->assertTrue(TRUE, $message, $group); } - /** * Fire an error assertion. * @@ -2354,7 +2353,6 @@ protected function drupalSetSettings($settings) { $this->drupalSettings = $settings; } - /* *Print a log message to the console. * @@ -2412,6 +2410,7 @@ public static function drop_tables($database) { } print 'Drop took:' . (time() - $time) . "sec\n\n"; } + /** * Import database dump to be used. * @@ -2435,4 +2434,5 @@ public static function import_database($database, $file) { exec($cmd, $output, $return); print 'Import finished took:' . (time() - $time) . "sec\n\n"; } + } diff --git a/src/NT/Drupal/Testing/PHPUnit/fixture_helper.php b/src/NT/Drupal/Testing/PHPUnit/fixture_helper.php index 657167a..5fbdff6 100644 --- a/src/NT/Drupal/Testing/PHPUnit/fixture_helper.php +++ b/src/NT/Drupal/Testing/PHPUnit/fixture_helper.php @@ -11,6 +11,7 @@ class fixture_helper { protected $object_list = array(); protected function __construct() {} + protected function __clone() {} public static function getInstance() { diff --git a/src/NT/Drupal/Testing/PHPUnit/mink_drupal_test_case.php b/src/NT/Drupal/Testing/PHPUnit/mink_drupal_test_case.php index 900e7a2..9c6b83a 100644 --- a/src/NT/Drupal/Testing/PHPUnit/mink_drupal_test_case.php +++ b/src/NT/Drupal/Testing/PHPUnit/mink_drupal_test_case.php @@ -106,6 +106,7 @@ public function takeScreenShot($path, $file = NULL) { file_put_contents($path . DIRECTORY_SEPARATOR . $file, $imageData); } } + /** * Registers Mink sessions on it's initialization. * diff --git a/src/NT/Drupal/Testing/PHPUnit/nt_mink_drupal_test_case.php b/src/NT/Drupal/Testing/PHPUnit/nt_mink_drupal_test_case.php index 52cc979..5b1b999 100644 --- a/src/NT/Drupal/Testing/PHPUnit/nt_mink_drupal_test_case.php +++ b/src/NT/Drupal/Testing/PHPUnit/nt_mink_drupal_test_case.php @@ -127,7 +127,6 @@ protected function loadCompany(array $config) { $this->getSession()->wait(3000); // Wait a 3 second. } - protected function loadPlaywright(array $config) { $config += array( 'title' => '', @@ -180,7 +179,6 @@ protected function loadPlaywright(array $config) { $this->getSession()->wait(3000); // Wait a 3 second. } - /** * #edit-bbpa-item-grouping-und-none, #edit-bbpa-item-grouping-und-fnt-video, #edit-bbpa-item-grouping-und-fnt-also * #edit-bbpa-item-grouping-und-browse, #edit-bbpa-item-grouping-und-featured-cont. @@ -336,7 +334,6 @@ protected function loadVideo(array $config) { $this->getSession()->wait(3000); // Wait a 3 second. } - protected function login() { $ch = curl_init($this->base_path . '/user/login'); $fp = fopen("/dev/null", "w");