$this->assertGreaterThan(0, $content['id']);
$this->assertSame('http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html', $content['url']);
- $this->assertSame(false, $content['is_archived']);
- $this->assertSame(false, $content['is_starred']);
+ $this->assertSame(0, $content['is_archived']);
+ $this->assertSame(0, $content['is_starred']);
$this->assertSame('New title for my article', $content['title']);
$this->assertSame(1, $content['user_id']);
$this->assertCount(2, $content['tags']);
$this->assertGreaterThan(0, $content['id']);
$this->assertSame('http://www.lemonde.fr/pixels/article/2015/03/28/plongee-dans-l-univers-d-ingress-le-jeu-de-google-aux-frontieres-du-reel_4601155_4408996.html', $content['url']);
- $this->assertSame(true, $content['is_archived']);
- $this->assertSame(false, $content['is_starred']);
+ $this->assertSame(1, $content['is_archived']);
+ $this->assertSame(0, $content['is_starred']);
$this->assertCount(3, $content['tags']);
}
$this->assertGreaterThan(0, $content['id']);
$this->assertSame('http://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', $content['url']);
- $this->assertSame(true, $content['is_archived']);
- $this->assertSame(true, $content['is_starred']);
+ $this->assertSame(1, $content['is_archived']);
+ $this->assertSame(1, $content['is_starred']);
$this->assertSame(1, $content['user_id']);
}
$this->assertGreaterThan(0, $content['id']);
$this->assertSame('http://www.lemonde.fr/idees/article/2016/02/08/preserver-la-liberte-d-expression-sur-les-reseaux-sociaux_4861503_3232.html', $content['url']);
- $this->assertSame(false, $content['is_archived']);
- $this->assertSame(true, $content['is_starred']);
+ $this->assertSame(0, $content['is_archived']);
+ $this->assertSame(1, $content['is_starred']);
}
public function testPatchEntry()
$content = json_decode($this->client->getResponse()->getContent(), true);
- $this->assertSame(true, $content['is_archived']);
+ $this->assertSame(1, $content['is_archived']);
}
public function testSaveIsStarredAfterPost()
$content = json_decode($this->client->getResponse()->getContent(), true);
- $this->assertSame(true, $content['is_starred']);
+ $this->assertSame(1, $content['is_starred']);
}
public function testSaveIsArchivedAfterPatch()
$content = json_decode($this->client->getResponse()->getContent(), true);
- $this->assertSame(true, $content['is_archived']);
+ $this->assertSame(1, $content['is_archived']);
}
public function testSaveIsStarredAfterPatch()
$content = json_decode($this->client->getResponse()->getContent(), true);
- $this->assertSame(true, $content['is_starred']);
+ $this->assertSame(1, $content['is_starred']);
}
public function dataForEntriesExistWithUrl()