Skip to content

Commit 4f665c8

Browse files
committed
bug fix
1 parent 67bee2f commit 4f665c8

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,21 @@ namespace iBrand\Poster\Test;
6262
class ShareImgTest extends BaseTest
6363
{
6464
/** @test */
65-
public function TestConfig()
66-
{
67-
$config = config('filesystems.disks');
68-
69-
$this->assertArrayHasKey('MiniProgramShare', $config);
70-
}
71-
72-
/** @test */
73-
public function TestGenerateShareImage()
74-
{
75-
$saveName = config('phantommagick.directory') . '/' . md5(time() . mt_rand(10000, 99999)) . '_share' . '.png';
76-
$route = 'https://m.baidu.com/';
77-
78-
MiniProgramShareImgTest::generateShareImage($saveName, $route);
79-
$this->assertTrue(file_exists(__DIR__ . '/' . $saveName));
80-
}
65+
public function TestConfig()
66+
{
67+
$config = config('filesystems.disks');
68+
69+
$this->assertArrayHasKey('MiniProgramShare', $config);
70+
}
71+
72+
/** @test */
73+
public function TestGenerateShareImage()
74+
{
75+
$route = 'https://m.baidu.com/';
76+
77+
$file = MiniProgramShareImgTest::generateShareImage($route);
78+
$this->assertTrue(file_exists(__DIR__ . '/' . $file));
79+
}
8180
}
8281
8382
```

0 commit comments

Comments
 (0)