📂 FileMgr
📍
/
home
/
u517669692
/
domains
/
aeuvm.org
/
public_html
/
tests
/
Feature
✏️ est.php
⬅ Kembali
<?php namespace Tests\Feature; use App\Models\Member; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Storage; use Tests\TestCase; class MemberJoinTest extends TestCase { use RefreshDatabase; public function test_join_screen_can_be_rendered() { $response = $this->get('/join'); $response->assertStatus(200); $response->assertSee('Membership Form'); } public function test_member_can_submit_join_form() { Storage::fake('public'); $photo = UploadedFile::fake()->image('avatar.jpg'); $response = $this->post('/join', [ 'name' => 'SAMRAT GROUP', 'father_name' => 'Father Name Test', 'phone' => '8795004438', 'email' => 'samratgroupjnp@gmail.com', 'dob' => '1995-08-10', 'state' => 'Maharashtra', 'district' => 'jaunpur', 'address' => 'gffghfgfgfgf', 'type' => 'member', 'photo' => $photo, ]); // Check it redirected to the payment page for the newly created member $member = Member::first(); $this->assertNotNull($member); $this->assertEquals('SAMRAT GROUP', $member->name); $this->assertEquals('Father Name Test', $member->father_name); $this->assertEquals('pending', $member->payment_status); $response->assertRedirect(route('join.payment', $member->id)); } }
💾 Simpan
Batal
⬅ tests
3 item
Nama
Tipe
Ukuran
Diubah
Aksi
📁
Auth
dir
—
2026-08-12 07:38
📂 Buka
✏️ Rename
🗑
🐘
ExampleTest.php
php
365 B
2026-08-12 07:38
✏️
👁️
🔤
🗑
🐘
MemberJoinTest.php
php
1.5 KB
2026-08-12 07:38
✏️
👁️
🔤
🗑
✏️ Rename
Nama Baru
Simpan
Batal