32 lines
730 B
PHP
32 lines
730 B
PHP
<?php
|
|
|
|
namespace Zoomyboy\LaravelNami\Tests\Unit;
|
|
|
|
use Zoomyboy\LaravelNami\Nami;
|
|
use Zoomyboy\LaravelNami\Tests\TestCase;
|
|
use Illuminate\Support\Facades\Http;
|
|
use Illuminate\Support\Facades\Config;
|
|
use Zoomyboy\LaravelNami\NamiServiceProvider;
|
|
use Zoomyboy\LaravelNami\LoginException;
|
|
use Zoomyboy\LaravelNami\Group;
|
|
|
|
class PullGenderTest extends TestCase
|
|
{
|
|
|
|
public function test_get_all_genders() {
|
|
Http::fake(array_merge($this->login(), $this->fakeGenders()));
|
|
|
|
$this->setCredentials();
|
|
|
|
Nami::login();
|
|
|
|
$this->assertEquals([
|
|
19 => 'Männlich',
|
|
20 => 'Weiblich'
|
|
], Nami::genders()->pluck('name', 'id')->toArray());
|
|
|
|
Http::assertSentCount(3);
|
|
}
|
|
|
|
}
|