UserPointEntityTest.php 434 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\Points\Entity;
  4. use PHPUnit\Framework\TestCase;
  5. class UserPointEntityTest extends TestCase
  6. {
  7. protected UserPointEntity $userPointEntity;
  8. protected function setUp(): void
  9. {
  10. $this->userPointEntity = app(UserPointEntity::class);
  11. }
  12. /**
  13. * 测试添加积分
  14. */
  15. public function testAdd()
  16. {
  17. $this->userPointEntity->add(1, 100);
  18. }
  19. }