1
0
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:
Vincent Jousse 2013-11-21 20:25:05 +01:00
parent f502810f43
commit 75fbd3420a
2 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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)
; ;
} }
} }