Skip to content

Commit 294624f

Browse files
author
Frederik Ring
committed
test: run seeding only when needed
1 parent 2077e1b commit 294624f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/Jobs/PlatformStatsSummaryJobTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ protected function setUp(): void {
3030
for($n = 0; $n < $this->numWikis; $n++ ) {
3131
DB::connection('mysql')->getPdo()->exec("DROP DATABASE IF EXISTS {$this->db_name}{$n};");
3232
}
33-
$this->seedWikis();
3433
}
3534

3635
protected function tearDown(): void {
@@ -63,6 +62,7 @@ private function seedWikis() {
6362
}
6463
public function testQueryGetsStats()
6564
{
65+
$this->seedWikis();
6666
$mockJob = $this->createMock(Job::class);
6767
$mockJob->expects($this->never())->method('fail');
6868

@@ -74,6 +74,7 @@ public function testQueryGetsStats()
7474

7575
public function testGroupings()
7676
{
77+
$this->seedWikis();
7778
$mockJob = $this->createMock(Job::class);
7879
$mockJob->expects($this->never())->method('fail');
7980

0 commit comments

Comments
 (0)