| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- use Illuminate\Http\UploadedFile;
- use Illuminate\Support\Facades\Storage;
- use Tests\TestCase;
- class BaseTest extends TestCase
- {
- const CONSTANT = "Hello world.";
- /**
- * @test
- */
- public function test_001()
- {
- dump(self::CONSTANT);
- $this->assertTrue(true);
- }
- public function testPrintPart(){
- $service = app(\App\Services\PrintPartService::class);
- $item = $service->getImagePart();
- dd($item);
- }
- public function testPushPartiImg()
- {
- Storage::fake('avatars');
- $file = UploadedFile::fake()->image('avatar.jpg');
- $response = $this->json('POST', 'apiLocal/maintenance/expressPrinting/part/pushImage', [
- 'name' => 'SF',
- 'file' => $file,
- ]);
- dd($response);
- }
- }
|