File tree Expand file tree Collapse file tree 1 file changed +1
-26
lines changed
Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change 1616 */
1717class AliasTest extends TestCase
1818{
19- /**
20- * @covers ::detectMethods
21- */
22- public function testDetectMethodsMacroableMacros (): void
23- {
24- // Mock
25- $ macro = __FUNCTION__ ;
26- $ alias = new AliasMock ();
27-
28- // Macros
29- Builder::macro (
30- $ macro ,
31- function () {
32- // empty
33- }
34- );
35-
36- // Prepare
37- $ alias ->setClasses ([Builder::class]);
38- $ alias ->detectMethods ();
39-
40- // Test
41- $ this ->assertNotNull ($ this ->getAliasMacro ($ alias , Builder::class, $ macro ));
42- }
43-
4419 /**
4520 * @covers ::detectMethods
4621 */
@@ -50,7 +25,7 @@ public function testDetectMethodsEloquentBuilderMacros(): void
5025 $ macro = __FUNCTION__ ;
5126 $ alias = new AliasMock ();
5227
53- // Macros
28+ // Macrosx
5429 EloquentBuilder::macro (
5530 $ macro ,
5631 function () {
You can’t perform that action at this time.
0 commit comments