Page MenuHomePhorge

UsersTest.php
No OneTemporary

Size
572 B
Referenced Files
None
Subscribers
None

UsersTest.php

<?php
namespace Tests\Feature\Console\Domain;
use Tests\TestCase;
class UsersTest extends TestCase
{
/**
* Test the command
*/
public function testHandle(): void
{
// Existing domain
$code = \Artisan::call("domain:users kolab.org");
$output = trim(\Artisan::output());
$this->assertSame(0, $code);
$john = \App\User::where('email', 'john@kolab.org')->first();
$this->assertTrue(strpos($output, (string) $john->id) !== false);
// TODO: Test output format and additional attributes
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Jul 9, 9:35 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1057148
Default Alt Text
UsersTest.php (572 B)

Event Timeline