• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tempestphp / tempest-framework / 11474462544

23 Oct 2024 06:39AM UTC coverage: 81.448% (-0.7%) from 82.194%
11474462544

Pull #513

github

web-flow
Merge 4e432caf1 into 219bda667
Pull Request #513: feat(console): add ability to publish vendor files

52 of 140 new or added lines in 6 files covered. (37.14%)

6 existing lines in 3 files now uncovered.

6884 of 8452 relevant lines covered (81.45%)

41.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.78
/src/Tempest/Auth/src/CreateUserPermissionTable.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Auth;
6

7
use Tempest\Core\CanBePublished;
8
use Tempest\Core\DoNotDiscover;
9
use Tempest\Core\PublishDiscovery;
10
use Tempest\Database\Migration;
11
use Tempest\Database\QueryStatements\CreateTableStatement;
12
use Tempest\Database\QueryStatements\DropTableStatement;
13

14
#[CanBePublished]
15
#[DoNotDiscover(except: [PublishDiscovery::class])]
16
final readonly class CreateUserPermissionTable implements Migration
17
{
18
    public function getName(): string
6✔
19
    {
20
        return '0000-00-02_create_user_permissions_table';
6✔
21
    }
22

23
    public function up(): CreateTableStatement
6✔
24
    {
25
        return (new CreateTableStatement('user_permissions'))
6✔
26
            ->primary()
6✔
27
            ->belongsTo('user_permissions.user_id', 'users.id')
6✔
28
            ->belongsTo('user_permissions.permission_id', 'permissions.id');
6✔
29
    }
30

UNCOV
31
    public function down(): DropTableStatement
×
32
    {
UNCOV
33
        return DropTableStatement::forModel(Permission::class);
×
34
    }
35
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc