lodestoneId)->delete(); $response = $this->get('/api/v1/lodestone/link/check/id/'.$this->lodestoneId.'/discord/'.$this->discordUserId); $this->assertDatabaseHas('link_codes', [ 'lodestoneId' => $this->lodestoneId, 'code' => $response['linkCode'] ]); } public function testGetLinkCodeByDiscordAndName() { LinkCode::where('lodestoneId', $this->lodestoneId)->delete(); $response = $this->get('/api/v1/lodestone/link/check/name/'.$this->server.'/'.$this->name.'/discord/'.$this->discordUserId); $this->assertDatabaseHas('link_codes', [ 'lodestoneId' => $this->lodestoneId, 'code' => $response['linkCode'] ]); } public function testGetLinkCodeByWebsiteAndId() { LinkCode::where('lodestoneId', $this->lodestoneId)->delete(); $response = $this->get('/api/v1/lodestone/link/check/id/'.$this->lodestoneId.'/website/'.$this->websiteName.'/'.$this->websiteId); $this->assertDatabaseHas('link_codes', [ 'lodestoneId' => $this->lodestoneId, 'code' => $response['linkCode'] ]); } public function testGetLinkCodeByWebsiteAndName() { LinkCode::where('lodestoneId', $this->lodestoneId)->delete(); $response = $this->get('/api/v1/lodestone/link/check/name/'.$this->server.'/'.$this->name.'/website/'.$this->websiteName.'/'.$this->websiteId); $this->assertDatabaseHas('link_codes', [ 'lodestoneId' => $this->lodestoneId, 'code' => $response['linkCode'] ]); } }