Skip to content

Commit

Permalink
[Tests] New iteration of removing $this occurrences in future stati…
Browse files Browse the repository at this point in the history
…c data providers
  • Loading branch information
alexandre-daubois committed Jan 23, 2023
1 parent 6071aeb commit 78f6400
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Iterator/DateRangeFilterIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DateRangeFilterIteratorTest extends RealIteratorTestCase
public function testAccept($size, $expected)
{
$files = self::$files;
$files[] = self::toAbsolute('doesnotexist');
$files[] = static::toAbsolute('doesnotexist');
$inner = new Iterator($files);

$iterator = new DateRangeFilterIterator($inner, $size);
Expand Down Expand Up @@ -84,9 +84,9 @@ public function getAcceptData()
];

return [
[[new DateComparator('since 20 years ago')], $this->toAbsolute($since20YearsAgo)],
[[new DateComparator('since 2 months ago')], $this->toAbsolute($since2MonthsAgo)],
[[new DateComparator('until last month')], $this->toAbsolute($untilLastMonth)],
[[new DateComparator('since 20 years ago')], static::toAbsolute($since20YearsAgo)],
[[new DateComparator('since 2 months ago')], static::toAbsolute($since2MonthsAgo)],
[[new DateComparator('until last month')], static::toAbsolute($untilLastMonth)],
];
}
}

0 comments on commit 78f6400

Please sign in to comment.