Skip to content

Commit

Permalink
Added PagesTest cases && code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
if3chi committed Jan 9, 2023
1 parent d4ce42f commit 212aaa1
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 59 deletions.
21 changes: 1 addition & 20 deletions resources/views/front/kids2action.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,9 @@
</p>
</div>
</div>
<div class="flex flex-wrap justify-center mt-12">
<div class="w-full px-4 space-y-3 text-center lg:w-3/12">

{{-- <x-paypal-btn href="{{ paypalLink('bmccn') }}"
class="justify-center shadow-xl" />
<h6 class="mt-5 text-xl font-semibold text-white">
Support the change
</h6> --}}

{{-- <p class="mt-2 mb-4 text-gray-50">
Click the button to support our creative writing competition.
</p> --}}
</div>
</div>
</section>

<section class="block py-24 bg-white lg:pt-0 fade-in" {{-- style="background-image: url(https://static.intercomassets.com/ember/assets/images/messenger-backgrounds/background-1-99a36524645be823aabcd0e673cb47f8.png)" --}}>

<section class="block py-24 bg-white lg:pt-0 fade-in">
<div class="container px-4 pt-6 mx-auto lg:pt-12">
<div class="flex flex-wrap items-center mt-24">
<div class="w-full px-4 ml-auto mr-auto md:w-5/12">
Expand Down Expand Up @@ -56,9 +40,6 @@ class="absolute left-0 block w-full" style="height: 95px; top: -94px;">
<h4 class="text-xl font-bold text-white">
KIDS2ACTION CAMPAIGN
</h4>
{{-- <p class="mt-2 font-normal text-white text-md">
KIDS2ACTION CAMPAIGN
</p> --}}
</blockquote>
</div>
</div>
Expand Down
21 changes: 0 additions & 21 deletions tests/Feature/ExampleTest.php

This file was deleted.

38 changes: 38 additions & 0 deletions tests/Feature/PagesTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

namespace Tests\Feature;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;

class PagesTest extends TestCase
{
/**
* A basic feature test example.
*
* @return void
*/
public function test_hompage_is_operating_normally()
{
$response = $this->get('/');

$response->assertStatus(200);
}

public function test_creative_writing_page_is_operating_normally()
{
$response = $this->get(route('creative-writing'));

$response->assertSee('Submit Essay');
$response->assertStatus(200);
}

public function test_kids_2_action_page_is_operating_normally()
{
$response = $this->get(route('kids2action'));

$response->assertSee('KIDS2ACTION CAMPAIGN');
$response->assertStatus(200);
}
}
18 changes: 0 additions & 18 deletions tests/Unit/ExampleTest.php

This file was deleted.

0 comments on commit 212aaa1

Please sign in to comment.