ç°å¢ OS: Windows 10 PHP: 8.1.2 Laravel Framework: 8.81.0 docker-compose: 1.29.2 PHPUnit: 9.5.10 MySQL: 8.0 Laravel Sailã使ç¨ãã¦ãLaravelããã¸ã§ã¯ããç«ã¡ä¸ãã¦ãã¾ãã ããã¸ã§ã¯ããç«ã¡ä¸ããé¨åã¯ããã¡ãã®ããã¥ã¡ã³ãã§ã確èªãã ããã RefreshDatabase DBã®ç¶æ ã«å½±é¿ããããã¹ããã use RefreshDatabase;ããã¦ãããã¨ã ãã¹ããå®è¡ããéã«åå¾ã®DBã®ç¶æ ãèããå¿ è¦ããªããªãã¾ãã åãã¹ãæ¯ã«DBããªãã¬ãã·ã¥ãããããã¾ã£ãããªç¶æ ã«ãã¦ãããã®ã§ã DBã®ç¶æ ã確èªããã¢ãµã¼ã·ã§ã³ã§ãã $this->assertDatabaseCount(...); $this->assertDatabaseHas(...); $
{{#tags}}- {{label}}
{{/tags}}