just one lightsail for discussion 3.
'],
]);
// We need to call these again, since we rolled back the transaction started by `::app()`.
@@ -52,8 +55,8 @@ class ListTest extends TestCase
{
parent::tearDown();
- $this->database()->table('discussions')->whereIn('id', [1, 2])->delete();
- $this->database()->table('posts')->whereIn('id', [1, 2])->delete();
+ $this->database()->table('discussions')->whereIn('id', [1, 2, 3])->delete();
+ $this->database()->table('posts')->whereIn('id', [1, 2, 3, 4])->delete();
}
/**
@@ -74,8 +77,7 @@ class ListTest extends TestCase
return $row['id'];
}, $data['data']);
- // Order-independent comparison
- $this->assertEquals(['3'], $ids, 'IDs do not match');
+ $this->assertEquals(['2', '3'], $ids, 'IDs do not match');
}
/**
@@ -96,8 +98,7 @@ class ListTest extends TestCase
return $row['id'];
}, $data['data']);
- // Order-independent comparison
- $this->assertEquals(['3'], $ids, 'IDs do not match');
+ $this->assertEquals(['2', '3'], $ids, 'IDs do not match');
}
/**