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

api-platform / core / 15775135891

20 Jun 2025 08:42AM UTC coverage: 22.065% (+0.2%) from 21.876%
15775135891

push

github

soyuka
Merge 4.1

13 of 103 new or added lines in 10 files covered. (12.62%)

868 existing lines in 35 files now uncovered.

11487 of 52060 relevant lines covered (22.06%)

21.72 hits per line

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

0.0
/src/Laravel/workbench/database/factories/PostWithMorphManyFactory.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace Workbench\Database\Factories;
15

16
use Illuminate\Database\Eloquent\Factories\Factory;
17
use Workbench\App\Models\PostWithMorphMany;
18

19
/**
20
 * @template TModel of \Workbench\App\Models\PostWithMorphMany
21
 *
22
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<TModel>
23
 */
24
class PostWithMorphManyFactory extends Factory
25
{
26
    /**
27
     * The name of the factory's corresponding model.
28
     *
29
     * @var class-string<TModel>
30
     */
31
    protected $model = PostWithMorphMany::class;
32

33
    /**
34
     * Define the model's default state.
35
     *
36
     * @return array<string, mixed>
37
     */
38
    public function definition(): array
39
    {
NEW
40
        return [
×
NEW
41
            'title' => fake()->unique()->sentence(10),
×
NEW
42
            'content' => fake()->sentences(10, true),
×
NEW
43
        ];
×
44
    }
45
}
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