delete(); Server::query()->delete(); Node::query()->delete(); } public function testExceptionIsThrownIfNoDiskSpaceHasBeenSet() { $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('Disk space must be an int, got NULL'); $this->getService()->handle(); } public function testExceptionIsThrownIfNoMemoryHasBeenSet() { $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('Memory usage must be an int, got NULL'); $this->getService()->setDisk(10)->handle(); } private function getService(): FindViableNodesService { return $this->app->make(FindViableNodesService::class); } }