public function blockById($userId) { $data = ['blocked_user_id' => $userId]; return $this->execPostRequest($data, UrlBuilder::RESOURCE_BLOCK_USER); }
/** @test */ public function it_should_block_user_by_id() { $this->apiShouldReturnSuccess()->assertTrue($this->provider->blockById(1111)); $this->apiShouldReturnError()->assertFalse($this->provider->blockById(1111)); }