Skip to content

Commit

Permalink
v73.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gammamatrix committed Mar 4, 2024
1 parent 4bf37ca commit 90a69f5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 6 deletions.
3 changes: 3 additions & 0 deletions phpunit.xml.dev
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
displayDetailsOnTestsThatTriggerWarnings="true"
testdox="true">
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
Expand Down
54 changes: 48 additions & 6 deletions tests/Unit/Models/PlaygroundUser/InstanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,62 @@ public function test_getAttributes(): void
$instance = new $mc();

$expected = [
// 'name' => '',
// 'email' => '',
// 'role' => '',
// 'roles' => [],
'abilities' => '{}',
'created_by_id' => null,
'modified_by_id' => null,
'user_type' => null,
'created_at' => null,
'updated_at' => null,
'deleted_at' => null,
'banned_at' => null,
'suspended_at' => null,
'gids' => 0,
'po' => 0,
'pg' => 0,
'pw' => 0,
'status' => 0,
'rank' => 0,
'size' => 0,
'active' => true,
'banned' => false,
'flagged' => false,
'internal' => false,
'locked' => false,
'problem' => false,
'suspended' => false,
'unknown' => false,
'name' => '',
'email' => '',
'password' => '',
'phone' => null,
'locale' => '',
'timezone' => '',
'label' => '',
'title' => '',
'byline' => '',
'slug' => null,
'url' => '',
'description' => '',
'introduction' => '',
'content' => null,
'summary' => null,
'icon' => '',
'image' => '',
'avatar' => '',
// JSON
'ui' => '{}',
// Abilities are shared with SPAs
'abilities' => '[]',
'accounts' => '{}',
'address' => '{}',
'contact' => '{}',
'meta' => '{}',
'notes' => '[]',
'options' => '{}',
'registration' => '[]',
'registration' => '{}',
'roles' => '[]',
'permissions' => '[]',
'privileges' => '[]',
'sources' => '[]',
];

$attributes = $instance->getAttributes();
Expand Down

0 comments on commit 90a69f5

Please sign in to comment.