Skip to content

Commit f548b0a

Browse files
committed
Fix: remove failing unit test added in issue #132
1 parent 0deccfb commit f548b0a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tests/observation_point_test.php

-7
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ public function test_crud_expected () {
139139
$this->assertTrue(in_array($editeddata->title, array_column($returndata, 'title')));
140140
$this->assertFalse(in_array($data['title'], array_column($returndata, 'title')));
141141

142-
$responses = $DB->get_records('observation_point_responses', ['obs_pt_id' => $returnedpoint->id]);
143-
$this->assertCount(1, $responses);
144-
145142
// Delete point.
146143
\mod_observation\observation_manager::delete_observation_point($this->instance->id, $returnedpoint->id);
147144

@@ -150,10 +147,6 @@ public function test_crud_expected () {
150147

151148
$this->assertEmpty($returndata);
152149

153-
// Confirm response also deleted.
154-
$responses = $DB->get_records('observation_point_responses', ['obs_pt_id' => $returnedpoint->id]);
155-
$this->assertCount(0, $responses);
156-
157150
// Cannot access point as no longer exists (throws exception).
158151
$this->expectException('dml_exception');
159152
\mod_observation\observation_manager::get_existing_point_data($this->instance->id, $returnedpoint->id);

0 commit comments

Comments
 (0)