Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions app/Console/Commands/Invitation/All.php

This file was deleted.

30 changes: 0 additions & 30 deletions app/Console/Commands/Invitation/Create.php

This file was deleted.

36 changes: 0 additions & 36 deletions app/Console/Commands/Invitation/CreateBulk.php

This file was deleted.

24 changes: 0 additions & 24 deletions app/Console/Commands/Invitation/Delete.php

This file was deleted.

2 changes: 0 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ protected function commands(): void {
$this->load(__DIR__ . '/Commands/User');
$this->load(__DIR__ . '/Commands/Job');
$this->load(__DIR__ . '/Commands/Wiki');
$this->load(__DIR__ . '/Commands/Invitation');

require base_path('routes/console.php');
}
}
39 changes: 0 additions & 39 deletions app/Invitation.php

This file was deleted.

31 changes: 0 additions & 31 deletions app/Jobs/InvitationCreateJob.php

This file was deleted.

32 changes: 0 additions & 32 deletions app/Jobs/InvitationDeleteJob.php

This file was deleted.

26 changes: 0 additions & 26 deletions database/factories/InvitationFactory.php

This file was deleted.

1 change: 0 additions & 1 deletion database/seeds/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class DatabaseSeeder extends Seeder {
public function run() {
Model::unguard();
$this->call(UsersSeeder::class);
$this->call(InvitationsSeeder::class);
$this->call(WikiDbsSeeder::class);
$this->call(QueryserviceNamespacesSeeder::class);
$this->call(WikisSeeder::class);
Expand Down
13 changes: 0 additions & 13 deletions database/seeds/InvitationsSeeder.php

This file was deleted.

24 changes: 0 additions & 24 deletions docs/invitation-codes.md

This file was deleted.

9 changes: 0 additions & 9 deletions tests/Routes/User/RegisterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Tests\Routes\User;

use App\Invitation;
use App\Notifications\UserCreationNotification;
use App\Rules\ReCaptchaValidation;
use App\User;
Expand Down Expand Up @@ -32,7 +31,6 @@ public function testCreateSuccess() {
$this->mockReCaptchaValidation();
Notification::fake();

$invite = Invitation::factory()->create();
$userToCreate = User::factory()->make();

$resp = $this->json('POST', $this->route, [
Expand All @@ -48,15 +46,11 @@ public function testCreateSuccess() {
Notification::assertSentTo(
[User::whereEmail($userToCreate->email)->first()], UserCreationNotification::class
);

// SHIFT doesnt have missingFromDatabase
// ->missingFromDatabase('invitations', ['code' => $invite->code]);
}

public function testCreateEmailAlreadyTaken() {
$this->mockReCaptchaValidation();

$invite = Invitation::factory()->create();
$user = User::factory()->create();

$this->json('POST', $this->route, [
Expand All @@ -70,7 +64,6 @@ public function testCreateEmailAlreadyTaken() {
public function testCreateNoToken() {
$this->mockReCaptchaValidation(false);

$invite = Invitation::factory()->create();
$user = User::factory()->make();

$this->json('POST', $this->route, [
Expand All @@ -91,8 +84,6 @@ public function testCreateNoEmailOrPassword() {
public function testCreateBadEmail() {
$this->mockReCaptchaValidation();

$invite = Invitation::factory()->create();

$this->json('POST', $this->route, [
'email' => 'notAnEmail',
'password' => 'anyPassword',
Expand Down
Loading