File tree 1 file changed +0
-7
lines changed
1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,6 @@ public function test_crud_expected () {
139
139
$ this ->assertTrue (in_array ($ editeddata ->title , array_column ($ returndata , 'title ' )));
140
140
$ this ->assertFalse (in_array ($ data ['title ' ], array_column ($ returndata , 'title ' )));
141
141
142
- $ responses = $ DB ->get_records ('observation_point_responses ' , ['obs_pt_id ' => $ returnedpoint ->id ]);
143
- $ this ->assertCount (1 , $ responses );
144
-
145
142
// Delete point.
146
143
\mod_observation \observation_manager::delete_observation_point ($ this ->instance ->id , $ returnedpoint ->id );
147
144
@@ -150,10 +147,6 @@ public function test_crud_expected () {
150
147
151
148
$ this ->assertEmpty ($ returndata );
152
149
153
- // Confirm response also deleted.
154
- $ responses = $ DB ->get_records ('observation_point_responses ' , ['obs_pt_id ' => $ returnedpoint ->id ]);
155
- $ this ->assertCount (0 , $ responses );
156
-
157
150
// Cannot access point as no longer exists (throws exception).
158
151
$ this ->expectException ('dml_exception ' );
159
152
\mod_observation \observation_manager::get_existing_point_data ($ this ->instance ->id , $ returnedpoint ->id );
You can’t perform that action at this time.
0 commit comments