Skip to content

Commit 6aa0fc8

Browse files
committed
try 1
1 parent aecdd53 commit 6aa0fc8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Test/Model/WikiPageTest.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,16 @@ public function testCreation()
4949
];
5050

5151
// create wiki page edition
52-
// $this->userSession = new UserSession($this->container);
5352

5453
$authManager = new AuthenticationManager($this->container);
5554
$authManager->register(new DatabaseAuth($this->container));
5655

5756
$_SESSION['user'] = array('id' => 1, 'username' => 'test', 'role' => 'app-admin');
57+
58+
$this->assertTrue($this->container['userSession']->isLogged());
59+
60+
$this->userSession = new UserSession($this->container);
61+
5862
$this->assertEquals(1, $wikimodel->createEdition($values, 1, 1), 'Failed to create wiki edition');
5963

6064
$editions = $wikimodel->getEditions(1);

0 commit comments

Comments
 (0)