Skip to content

Commit

Permalink
Corrects function spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Mar 26, 2018
1 parent a410119 commit 013081e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/NT/Drupal/Testing/Fixtures/fixture_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class fixture_helper {
protected $object_list = array();

protected function __construct() {}

protected function __clone() {}

public static function getInstance() {
Expand Down
5 changes: 5 additions & 0 deletions src/NT/Drupal/Testing/Fixtures/fixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public function __construct() {
$node = $this->parseData($data);
$this::$data = $node;
}

/**
* Parse the data into a node.
*
Expand Down Expand Up @@ -44,6 +45,7 @@ protected function parseData($data) {
}
return $node;
}

/**
* Get the current data for this fixture.
*
Expand All @@ -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.
*
Expand All @@ -72,6 +76,7 @@ public function run() {
}
return $this::$nid;
}

/**
* Install node.
*
Expand Down
4 changes: 2 additions & 2 deletions src/NT/Drupal/Testing/PHPUnit/drupal_test_case.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ protected function pass($message = NULL, $group = 'Other') {
return $this->assertTrue(TRUE, $message, $group);
}


/**
* Fire an error assertion.
*
Expand Down Expand Up @@ -2354,7 +2353,6 @@ protected function drupalSetSettings($settings) {
$this->drupalSettings = $settings;
}


/*
*Print a log message to the console.
*
Expand Down Expand Up @@ -2412,6 +2410,7 @@ public static function drop_tables($database) {
}
print 'Drop took:' . (time() - $time) . "sec\n\n";
}

/**
* Import database dump to be used.
*
Expand All @@ -2435,4 +2434,5 @@ public static function import_database($database, $file) {
exec($cmd, $output, $return);
print 'Import finished took:' . (time() - $time) . "sec\n\n";
}

}
1 change: 1 addition & 0 deletions src/NT/Drupal/Testing/PHPUnit/fixture_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class fixture_helper {
protected $object_list = array();

protected function __construct() {}

protected function __clone() {}

public static function getInstance() {
Expand Down
1 change: 1 addition & 0 deletions src/NT/Drupal/Testing/PHPUnit/mink_drupal_test_case.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
3 changes: 0 additions & 3 deletions src/NT/Drupal/Testing/PHPUnit/nt_mink_drupal_test_case.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '',
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 013081e

Please sign in to comment.