laravel-nami-api/tests/Unit/PullMembershipTest.php

20 lines
497 B
PHP
Raw Normal View History

2022-11-08 16:02:12 +01:00
<?php
namespace Zoomyboy\LaravelNami\Tests\Unit;
use Zoomyboy\LaravelNami\Fakes\MembershipFake;
use Zoomyboy\LaravelNami\Tests\TestCase;
class PullMembershipTest extends TestCase
{
public function testGetASingleMembership(): void
{
app(MembershipFake::class)
->fetches(105, [['id' => 56, 'entries_taetigkeit' => 'Leiter']]);
$memberships = $this->login()->membershipsOf(105);
$this->assertEquals('Leiter', $memberships->first()->activity);
}
}