public function testThrowsExceptionWhenValidatingMissingJsonData() { $this->request->expects($this->once())->method('getContent')->will($this->returnValue(null)); $this->resource->validateMetadata($this->event); }