diff --git a/src/API/Request/Cancel.php b/src/API/Request/Cancel.php index da6e089..17f2f61 100644 --- a/src/API/Request/Cancel.php +++ b/src/API/Request/Cancel.php @@ -27,7 +27,7 @@ public function getMethod() public function getParams() { return [ - 'classroom_id' => $this->classroomId, + 'class' => $this->classroomId, ]; } } diff --git a/tests/API/Request/CancelTest.php b/tests/API/Request/CancelTest.php index 73e16fd..e5682cc 100644 --- a/tests/API/Request/CancelTest.php +++ b/tests/API/Request/CancelTest.php @@ -22,7 +22,7 @@ public function testGetMethod() public function testGetParams() { $params = [ - 'classroom_id' => 12345, + 'class' => 12345, ]; $this->assertEquals($params, $this->request->getParams());