Page MenuHomePhorge

DomainOwnerTest.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

DomainOwnerTest.php

<?php
namespace Tests\Feature;
use App\Package;
use App\User;
use Illuminate\Support\Facades\Queue;
use Tests\TestCase;
class DomainOwnerTest extends TestCase
{
/**
* {@inheritDoc}
*/
public function setUp(): void
{
parent::setUp();
$this->deleteTestUser('jane@kolab.org');
}
/**
* {@inheritDoc}
*/
public function tearDown(): void
{
$this->deleteTestUser('jane@kolab.org');
parent::tearDown();
}
public function testJohnCreateJane(): void
{
$john = User::where('email', 'john@kolab.org')->first();
$jane = User::create(
[
'name' => 'Jane Doe',
'email' => 'jane@kolab.org',
'password' => 'simple123',
'email_verified_at' => now()
]
);
$package = Package::where('title', 'kolab')->first();
$john->assignPackage($package, $jane);
// assert jane has a mailbox entitlement
$this->assertTrue($jane->entitlements->count() == 4);
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 1:28 PM (3 h, 44 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
bb/3f/f2bce7ed9b9d061dc58052abe189
Default Alt Text
DomainOwnerTest.php (1 KB)

Event Timeline