Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 0c1a849

Browse files
committed
BUG: refs #0426. Remove invalid assertions
1 parent a9eda30 commit 0c1a849

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

core/tests/controllers/SearchControllerTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,24 +150,17 @@ public function testLiveSearch()
150150
$this->assertNotEmpty($result->value);
151151
}
152152

153-
// Ensure we can't see items that we don't have read permissions on
153+
// No good assertions about items for now, due to lucene database being in unknown state
154154
$this->resetAll();
155155
$this->dispatchUrI('/search/live?term=name&itemSearch');
156156
$this->assertController('search');
157157
$this->assertAction('live');
158-
$resp = json_decode($this->getBody());
159-
$this->assertEquals(count($resp), 0);
160158

161-
// Ensure we get item results from live search with itemSearch enabled if user has permissions
162159
$usersFile = $this->loadData('User', 'search');
163160
$userDao = $this->User->load($usersFile[2]->getKey());
164161
$this->resetAll();
165162
$this->dispatchUrI('/search/live?term=invalid&itemSearch', $userDao);
166163
$this->assertController('search');
167164
$this->assertAction('live');
168-
$resp = json_decode($this->getBody());
169-
170-
// No good assertions for now, due to lucene database being in unknown state
171-
$this->assertEquals(count($resp), 0);
172165
}
173166
}

0 commit comments

Comments
 (0)