-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removed the Test Command for simplicity
- Loading branch information
1 parent
107cfcc
commit 2f5a4fe
Showing
11 changed files
with
80 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...ations/2024_12_11_145726_nullable_fields_in_crowd_sourcing_project_translations_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration { | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void { | ||
Schema::table('crowd_sourcing_project_translations', function (Blueprint $table) { | ||
$table->mediumText('footer')->nullable()->change(); | ||
$table->text('sm_description')->nullable()->change(); | ||
$table->text('sm_keywords')->nullable()->change(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void { | ||
Schema::table('crowd_sourcing_project_translations', function (Blueprint $table) { | ||
// | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
tests/Feature/Controllers/Solution/SolutionControllerTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Feature\Controllers\Solution; | ||
|
||
use Tests\TestCase; | ||
|
||
class SolutionControllerTest extends TestCase { | ||
/** | ||
* @test | ||
* | ||
* @group solution-controller-test | ||
* | ||
* Test Scenario 1: | ||
* GIVEN that a user is not authenticated, | ||
* | ||
* AND they try to access the solution propose page, | ||
* THEN they should be redirected to the login page. | ||
* | ||
* @return void | ||
*/ | ||
public function test_user_proposal_create_redirects_to_login_page_when_user_is_not_authenticated() { | ||
$response = $this->get('/en/project-slug/problems/problem-slug/solutions/propose'); | ||
|
||
$response->assertRedirectContains(route('login', ['locale' => 'en'])); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.