File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -62,22 +62,21 @@ namespace iBrand\Poster\Test;
62
62
class ShareImgTest extends BaseTest
63
63
{
64
64
/** @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
+ }
81
80
}
82
81
83
82
```
You can’t perform that action at this time.
0 commit comments