@@ -29,35 +29,38 @@ public function test_capture_failures_for()
29
29
}
30
30
31
31
#[DataProvider('data ' )]
32
- public function test_capture_failures_for_data ()
32
+ public function test_capture_failures_for_data ($ data )
33
33
{
34
34
$ browser = m::mock (stdClass::class);
35
35
$ browser ->shouldReceive ('screenshot ' )->with (
36
- 'failure-Laravel_Dusk_Tests_Unit_ProvidesBrowserTest_test_capture_failures_for_data_foo -0 '
36
+ sprintf ( 'failure-Laravel_Dusk_Tests_Unit_ProvidesBrowserTest_test_capture_failures_for_data_%s -0 ' , $ data )
37
37
);
38
38
$ browsers = collect ([$ browser ]);
39
39
40
40
$ this ->captureFailuresFor ($ browsers );
41
41
}
42
42
43
43
#[DataProvider('data ' )]
44
- public function test_store_console_logs_for_data ()
44
+ public function test_store_console_logs_for_data ($ data )
45
45
{
46
46
$ browser = m::mock (stdClass::class);
47
47
$ browser ->shouldReceive ('storeConsoleLog ' )->with (
48
- ' Laravel_Dusk_Tests_Unit_ProvidesBrowserTest_test_store_console_logs_for_data_foo -0 '
48
+ sprintf ( ' Laravel_Dusk_Tests_Unit_ProvidesBrowserTest_test_store_console_logs_for_data_%s -0 ', $ data )
49
49
);
50
50
$ browsers = collect ([$ browser ]);
51
51
52
52
$ this ->storeConsoleLogsFor ($ browsers );
53
53
}
54
54
55
55
#[DataProvider('data ' )]
56
- public function test_truncate_test_name_where_that_name_is_really_really_really_too_long_and_might_cause_issues_data ()
56
+ public function test_truncate_test_name_where_that_name_is_really_really_really_too_long_and_might_cause_issues_data ($ data )
57
57
{
58
58
$ browser = m::mock (stdClass::class);
59
59
$ browser ->shouldReceive ('storeConsoleLog ' )->with (
60
- 'Dusk_Tests_Unit_ProvidesBrowserTest_test_truncate_test_name_where_that_name_is_really_really_really_too_long_and_might_cause_issues_data_foo-0 '
60
+ sprintf (
61
+ 'Dusk_Tests_Unit_ProvidesBrowserTest_test_truncate_test_name_where_that_name_is_really_really_really_too_long_and_might_cause_issues_data_%s-0 ' ,
62
+ $ data
63
+ )
61
64
);
62
65
$ browsers = collect ([$ browser ]);
63
66
0 commit comments