From 9e2ec909df8b20a82a76d7d79d306f5b60fdfbf8 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 24 Apr 2016 14:45:51 -0700 Subject: [PATCH] Spacing updates for test cases --- core/bug_revision_api.php | 6 +++--- tests/soap/MentionTest.php | 8 +++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/core/bug_revision_api.php b/core/bug_revision_api.php index 30644572e3..54d3e797bf 100644 --- a/core/bug_revision_api.php +++ b/core/bug_revision_api.php @@ -238,11 +238,11 @@ function bug_revision_last( $p_bug_id, $p_type = REV_ANY, $p_bugnote_id = 0 ) { $t_result = db_query( $t_query, $t_params, 1 ); $t_row = db_fetch_array( $t_result ); - if( $t_row ) { - return $t_row; + if( $t_row ) { + return $t_row; } else { return null; - } + } } /** diff --git a/tests/soap/MentionTest.php b/tests/soap/MentionTest.php index 53aba45f26..4cf85f8986 100644 --- a/tests/soap/MentionTest.php +++ b/tests/soap/MentionTest.php @@ -15,7 +15,7 @@ # along with MantisBT. If not, see . /** - * Mantis Webservice Tests + * Mantis Webservice Tests for Mentions * * @package Tests * @subpackage UnitTests @@ -87,8 +87,8 @@ public function testAddNote() { $t_note_data = array( 'text' => 'first note @administrator', - 'note_type' => 2, - 'note_attr' => 'attr_value' + 'note_type' => 2, + 'note_attr' => 'attr_value' ); $t_issue_note_id = $this->client->mc_issue_note_add( $this->userName, $this->password, $t_issue_id, $t_note_data ); @@ -101,6 +101,4 @@ public function testAddNote() { $this->assertEquals( $t_issue_note_id, $t_note->id ); $this->assertEquals( $t_note_data['text'], $t_note->text ); } - - # TODO: Add test case for free text search with mention. }