mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-04 02:10:51 +00:00
4c6da2c4bf
* move file to templates, to remove confusion in the root * use stable symplify * [Laravel] Add AddParentBootToModelClassMethodRector * [ci-review] Generate Rector & Nodes documentation * [ci-review] propagate monorepo dependencies * [ci-review] Rector Rectify Co-authored-by: rector-bot <tomas@getrector.org>
32 lines
808 B
PHP
32 lines
808 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Rector\Laravel\Tests\Rector\ClassMethod\AddParentBootToModelClassMethodRector;
|
|
|
|
use Iterator;
|
|
use Rector\Laravel\Rector\ClassMethod\AddParentBootToModelClassMethodRector;
|
|
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
|
|
use Symplify\SmartFileSystem\SmartFileInfo;
|
|
|
|
final class AddParentBootToModelClassMethodRectorTest extends AbstractRectorTestCase
|
|
{
|
|
/**
|
|
* @dataProvider provideData()
|
|
*/
|
|
public function test(SmartFileInfo $fileInfo): void
|
|
{
|
|
$this->doTestFileInfo($fileInfo);
|
|
}
|
|
|
|
public function provideData(): Iterator
|
|
{
|
|
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
|
}
|
|
|
|
protected function getRectorClass(): string
|
|
{
|
|
return AddParentBootToModelClassMethodRector::class;
|
|
}
|
|
}
|