File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
class DbFakerMaskTest extends TestCase
8
8
{
9
9
10
+ /**
11
+ *
12
+ * @var DbFakerMask
13
+ */
10
14
protected $ dbFakerMask ;
11
15
16
+ /**
17
+ *
18
+ * {@inheritdoc}
19
+ * @see \PHPUnit\Framework\TestCase::setUp()
20
+ */
12
21
protected function setUp ()
13
22
{
14
23
/**
15
24
*
16
25
* @var \Illuminate\Foundation\Application $app
17
26
*/
18
27
$ app = require __DIR__ . '/bootstrap/app.php ' ;
19
- $ app ->loadEnvironmentFrom ('.env.testing ' );
20
28
$ app ->make (\Tests \Kernel::class)->bootstrap ();
21
29
22
30
$ faker = \Faker \Factory::create ();
@@ -25,8 +33,8 @@ protected function setUp()
25
33
'chunk ' => 20 ,
26
34
'tables ' => [
27
35
'users ' => [
28
- 'firstname ' => 'firstName ' ,
29
- 'lastname ' => 'lastName '
36
+ 'first_name ' => 'firstName ' ,
37
+ 'last_name ' => 'lastName '
30
38
]
31
39
]
32
40
];
@@ -39,10 +47,10 @@ public function testConstructor()
39
47
$ this ->assertTrue ($ this ->dbFakerMask instanceof DbFakerMask);
40
48
}
41
49
42
- // public function testMasking()
43
- // {
44
- // $this->dbFakerMask->mask();
50
+ public function testMasking ()
51
+ {
52
+ $ this ->dbFakerMask ->mask ();
45
53
46
- // $this->assertTrue($this->dbFakerMask instanceof DbFakerMask);
47
- // }
54
+ $ this ->assertTrue ($ this ->dbFakerMask instanceof DbFakerMask);
55
+ }
48
56
}
You can’t perform that action at this time.
0 commit comments