mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-17 21:22:15 -05:00
Fix dummy entry test
This commit is contained in:
parent
f502810f43
commit
75fbd3420a
@ -4,6 +4,9 @@ namespace Poche\Model;
|
|||||||
|
|
||||||
class Entry
|
class Entry
|
||||||
{
|
{
|
||||||
|
private $id;
|
||||||
|
private $title;
|
||||||
|
|
||||||
public function __construct($id, $title) {
|
public function __construct($id, $title) {
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
$this->title = $title;
|
$this->title = $title;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace tests\unit;
|
namespace Poche\Model\tests\units;
|
||||||
|
|
||||||
use \atoum;
|
use \atoum;
|
||||||
|
|
||||||
@ -8,11 +8,11 @@ class Entry extends atoum
|
|||||||
{
|
{
|
||||||
public function testGetId()
|
public function testGetId()
|
||||||
{
|
{
|
||||||
$entry = new Poche\Model\Entry();
|
$entry = new \Poche\Model\Entry(1, "Titre test");
|
||||||
|
|
||||||
$this
|
$this
|
||||||
->integer($entry->getId())
|
->integer($entry->getId())
|
||||||
->isEqualTo('Test')
|
->isEqualTo(1)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user