mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-05-02 01:57:58 +01:00
Rename method. Fix PHP 5.6 error
This commit is contained in:
parent
f25ce7f9f1
commit
d112fce009
2 changed files with 4 additions and 4 deletions
|
@ -104,7 +104,7 @@ class Filter
|
|||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function list($value)
|
||||
public function fromList($value)
|
||||
{
|
||||
$this->has("list:{$value}");
|
||||
|
||||
|
|
|
@ -135,13 +135,13 @@ class FilterTest extends TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers ::list
|
||||
* @covers ::fromList
|
||||
*/
|
||||
public function testList()
|
||||
public function testFromList()
|
||||
{
|
||||
$this->assertEquals(
|
||||
['hasTheWord' => 'list:foobar'],
|
||||
$this->filter->list('foobar')->toArray()
|
||||
$this->filter->fromList('foobar')->toArray()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue