Skip to content

Commit

Permalink
phpcbf --standard=Drupal --sniffs=Drupal.Array.Array src
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Mar 26, 2018
1 parent 57b087e commit baa106f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
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 @@ -1322,7 +1322,7 @@ protected function curlExec($curl_options, $redirect = FALSE) {
'!method' => !empty($curl_options[CURLOPT_NOBODY]) ? 'HEAD' : (empty($curl_options[CURLOPT_POSTFIELDS]) ? 'GET' : 'POST'),
'@url' => isset($original_url) ? $original_url : $url,
'@status' => $status,
'!length' => format_size(strlen($this->drupalGetContent()))
'!length' => format_size(strlen($this->drupalGetContent())),
);
$message = t('!method @url returned @status (!length).', $message_vars);
$this->assertTrue($this->drupalGetContent() !== FALSE, $message, t('Browser'));
Expand Down Expand Up @@ -1629,7 +1629,7 @@ protected function drupalLogin(stdClass $user) {

$edit = array(
'name' => $user->name,
'pass' => $user->pass_raw
'pass' => $user->pass_raw,
);
$this->drupalPost('user', $edit, t('Log in'));

Expand Down
90 changes: 45 additions & 45 deletions src/NT/Drupal/Testing/PHPUnit/nt_mink_drupal_test_case.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ protected function onNotSuccessfulTest(Exception $e)

protected function loadProduction(array $config) {
$config += array(
'title' => '',
'body' => '',
'author' => '',
'image' => '',
'playwright' => '',
'company' => '',
'theatre' => '',
'originalDate' => '',
'openingNight' => '',
'pressNight' => ''
'title' => '',
'body' => '',
'author' => '',
'image' => '',
'playwright' => '',
'company' => '',
'theatre' => '',
'originalDate' => '',
'openingNight' => '',
'pressNight' => '',

);
try {
Expand Down Expand Up @@ -84,8 +84,8 @@ protected function loadProduction(array $config) {

protected function loadTheatre(array $config) {
$config += array(
'title' => '',
'address' => ''
'title' => '',
'address' => '',
);

try {
Expand All @@ -110,7 +110,7 @@ protected function loadTheatre(array $config) {

protected function loadCompany(array $config) {
$config += array(
'title' => ''
'title' => '',
);
try {
$this->getSession()->visit($this->base_path . '/node/add/company');
Expand All @@ -132,19 +132,19 @@ protected function loadCompany(array $config) {

protected function loadPlaywright(array $config) {
$config += array(
'title' => '',
'body' => '',
'RecordID' => '',
'Role RecordID' => '',
'Name RecordID' => '',
'Person Details' => '',
'Main Image' => '',
'production history' => array(),
'biblio fields' => array(),
'critical sources' => array(),
'articles' => array(),
'videos' => array(),
'scripts' => array()
'title' => '',
'body' => '',
'RecordID' => '',
'Role RecordID' => '',
'Name RecordID' => '',
'Person Details' => '',
'Main Image' => '',
'production history' => array(),
'biblio fields' => array(),
'critical sources' => array(),
'articles' => array(),
'videos' => array(),
'scripts' => array(),
);
try {
$this->getSession()->visit($this->base_path . '/node/add/playwright');
Expand Down Expand Up @@ -201,11 +201,11 @@ protected function loadPlaywright(array $config) {
protected function loadFeaturedItem(array $config) {

$config += array(
'title' => '',
'body' => '',
'item' => '',
'grouping' => '#edit-bbpa-item-grouping-und-none',
'weighting' => 40
'title' => '',
'body' => '',
'item' => '',
'grouping' => '#edit-bbpa-item-grouping-und-none',
'weighting' => 40,
);
try {
$this->getSession()->visit($this->base_path . '/node/add/featured-item');
Expand Down Expand Up @@ -240,10 +240,10 @@ protected function loadFeaturedItem(array $config) {
protected function loadArticle(array $config) {

$config += array(
'title' => '',
'body' => '',
'image' => '',
'layout' => 'bbpa_article_layout_basic'
'title' => '',
'body' => '',
'image' => '',
'layout' => 'bbpa_article_layout_basic',
);
try {
$this->getSession()->visit($this->base_path . '/node/add/bbpa-article');
Expand Down Expand Up @@ -274,10 +274,10 @@ protected function loadArticle(array $config) {
protected function loadImage(array $config) {

$config += array(
'title' => '',
'body' => '',
'dTitle' => '',
'file' => ''
'title' => '',
'body' => '',
'dTitle' => '',
'file' => '',
);
try {
$this->getSession()->visit($this->base_path . '/node/add/image');
Expand Down Expand Up @@ -308,12 +308,12 @@ protected function loadImage(array $config) {
protected function loadVideo(array $config) {

$config += array(
'title' => '',
'body' => '',
'dTitle' => '',
'file' => '',
'running_time' => '0.33',
'thumbnail' => ''
'title' => '',
'body' => '',
'dTitle' => '',
'file' => '',
'running_time' => '0.33',
'thumbnail' => '',
);
try {
$this->getSession()->visit($this->base_path . '/node/add/video');
Expand Down

0 comments on commit baa106f

Please sign in to comment.