Skip to content

Commit fa56aae

Browse files
author
Bernhard Posselt
committed
push broken test
1 parent 6db7422 commit fa56aae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/integration/controller/NotesApiControllerTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class NotesApiControllerTest extends TestCase {
2121
private $controller;
2222
private $mapper;
2323
private $userId = 'test';
24+
private $fs;
2425

2526
public function setUp() {
2627
parent::setUp();
@@ -33,6 +34,10 @@ public function setUp() {
3334
$this->controller = $container->query(
3435
'OCA\Notes\Controller\NotesApiController'
3536
);
37+
38+
$this->fs = $this->controller = $container->query(
39+
'OCP\Files\IRootFolder'
40+
);
3641
}
3742

3843

@@ -48,6 +53,10 @@ public function testUpdate() {
4853

4954
$this->assertCount(1, $notes);
5055
$this->assertEquals('test2', $notes[0]->getContent());
56+
57+
$file = $this->fs->get('/' . $userId . '/notes/test2.txt');
58+
59+
$this->assertTrue($file instanceof OCP\Files\File);
5160
}
5261

5362

0 commit comments

Comments
 (0)