fixup! MDL-63897 dataprivacy: Kill the preprocess stage
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 9 Nov 2018 03:26:21 +0000 (11:26 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 9 Nov 2018 03:26:21 +0000 (11:26 +0800)
admin/tool/dataprivacy/tests/data_request_test.php

index e10c12d..f15bdd5 100644 (file)
@@ -189,7 +189,7 @@ class tool_dataprivacy_data_request_testcase extends data_privacy_testcase {
         $this->assertEquals('Foo', $newrequest->get('comments'));
         $this->assertEquals(42, $newrequest->get('requestedby'));
         $this->assertEquals(98, $newrequest->get('dpo'));
-        $this->assertEquals(api::DATAREQUEST_STATUS_PENDING, $newrequest->get('status'));
+        $this->assertEquals(api::DATAREQUEST_STATUS_AWAITING_APPROVAL, $newrequest->get('status'));
         $this->assertEquals(api::DATAREQUEST_TYPE_DELETE, $newrequest->get('type'));
 
         $this->assertEquals(api::DATAREQUEST_STATUS_REJECTED, $uut->get('status'));
@@ -213,7 +213,7 @@ class tool_dataprivacy_data_request_testcase extends data_privacy_testcase {
         $this->assertEquals('Foo', $newrequest->get('comments'));
         $this->assertEquals(42, $newrequest->get('requestedby'));
         $this->assertEquals(98, $newrequest->get('dpo'));
-        $this->assertEquals(api::DATAREQUEST_STATUS_PENDING, $newrequest->get('status'));
+        $this->assertEquals(api::DATAREQUEST_STATUS_AWAITING_APPROVAL, $newrequest->get('status'));
         $this->assertEquals(api::DATAREQUEST_TYPE_DELETE, $newrequest->get('type'));
 
         $this->assertEquals(api::DATAREQUEST_STATUS_REJECTED, $uut->get('status'));