Skip to content

Commit f611f17

Browse files
committed
cleanup test
1 parent 39f859b commit f611f17

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Model/Wiki.php

-3
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,8 @@ public function createEdition($values, $wiki_id, $edition, $date='')
311311
// $values['modifier_id'] = $this->userSession->getId();
312312
// date_modification
313313

314-
error_log('editionvalues: '.json_encode($editionvalues));
315-
316314
return $this->db->table(self::EDITIONTABLE)->persist($editionvalues);
317315
} else {
318-
error_log('persistEditions: '.json_encode($persistEditions));
319316
return null;
320317
}
321318

Test/Model/WikiPageTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testCreation()
5858
$this->assertTrue($this->container['userSession']->isLogged(), 'Failed to login');
5959

6060
$this->userSession = new UserSession($this->container);
61-
61+
// result is not a consistent 1. is this true or id for new edition?
6262
$createEditionResult = $wikimodel->createEdition($values, 1, 1);
6363
// $this->assertEquals($wikimodel->createEdition($values, 1, 1), 1, 'Failed to create wiki edition');
6464

0 commit comments

Comments
 (0)