Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix risky test without assertion
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jun 8, 2022
commit b9650aea749441d5daafa1a1dd530068d40d9768
7 changes: 5 additions & 2 deletions tests/lib/Files/Node/FolderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,14 @@ public function testGet() {
->method('getUser')
->willReturn($this->user);

$expected = $this->createMock(Node::class);
$root->method('get')
->with('/bar/foo/asd');
->with('/bar/foo/asd')
->willReturn($expected);

$node = new Folder($root, $view, '/bar/foo');
$node->get('asd');
$return = $node->get('asd');
self::assertEquals($expected, $return);
}

public function testNodeExists() {
Expand Down