Skip to content

Commit

Permalink
Spacing updates for test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Apr 28, 2016
1 parent 16dc6c1 commit 9e2ec90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions core/bug_revision_api.php
Expand Up @@ -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;
}
}
}

/**
Expand Down
8 changes: 3 additions & 5 deletions tests/soap/MentionTest.php
Expand Up @@ -15,7 +15,7 @@
# along with MantisBT. If not, see <http://www.gnu.org/licenses/>.

/**
* Mantis Webservice Tests
* Mantis Webservice Tests for Mentions
*
* @package Tests
* @subpackage UnitTests
Expand Down Expand Up @@ -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 );
Expand All @@ -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.
}

0 comments on commit 9e2ec90

Please sign in to comment.