noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 10/12: useless file


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 10/12: useless file
Date: Wed, 16 Nov 2022 14:39:19 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 45cb94b63e403ab21fb736e43919654edf319654
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Nov 14 22:31:43 2022 +0100

    useless file
---
 Acc_Operation_NoteTest.php | 60 ----------------------------------------------
 1 file changed, 60 deletions(-)

diff --git a/Acc_Operation_NoteTest.php b/Acc_Operation_NoteTest.php
deleted file mode 100644
index 7a7706672..000000000
--- a/Acc_Operation_NoteTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/*
- *   This file is part of NOALYSS.
- *    NOALYSS is free software; you can redistribute it and/or modify
- *    it under the terms of the GNU General Public License as published by
- *    the Free Software Foundation; either version 2 of the License, or
- *    (at your option) any later version.
- *
- *    NOALYSS is distributed in the hope that it will be useful,
- *    but WITHOUT ANY WARRANTY; without even the implied warranty of
- *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *    GNU General Public License for more details.
- *
- *    You should have received a copy of the GNU General Public License
- *    along with NOALYSS; if not, write to the Free Software
- *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *
- *    Copyright Author Dany De Bontridder danydb@noalyss.eu
- *
- */
-
-use PHPUnit\Framework\TestCase;
-
-class Acc_Operation_NoteTest extends TestCase
-{
-
-    public function testBuild_jrn_id()
-    {
-        $note=Acc_Operation_Note::build_jrn_id(165);
-        $this->assertEquals(7,$note->getJrnNoteSql()->getp("n_id"),' cannot 
retrieve a note');
-
-        $note=Acc_Operation_Note::build_jrn_id(686);
-        $this->assertEquals(14,$note->getJrnNoteSql()->getp("n_id"),' cannot 
retrieve a note');
-
-        $note=Acc_Operation_Note::build_jrn_id(1000);
-        $this->assertEquals(-1,$note->getJrnNoteSql()->getp("n_id"),' cannot 
retrieve a note');
-    }
-    public function testSave()
-    {
-        $cn=Dossier::connect();
-        $cn->exec_sql("delete from jrn_note where jr_id=251");
-        // Add a new note
-        $note=Acc_Operation_Note::build_jrn_id(251);
-        $this->assertEquals(-1,$note->getJrnNoteSql()->getp("n_id"),"note 
already exist");
-
-        $note->setNote("Test 1");
-        $note->setOperation_id(251);
-        $note->save();
-
-        $compare=Acc_Operation_Note::build_jrn_id(251);
-        $id=$note->getJrnNoteSql()->getp("n_id");
-        
$this->assertGreaterThan(0,$compare->getJrnNoteSql()->getp("n_id"),"note not 
created");
-        $this->assertEquals($id,$compare->getJrnNoteSql()->getp("n_id"),"Note 
not loaded");
-        $note->setNote("Test 2");
-        $note->save();
-         $compare->load();
-        $this->assertEquals("Test 
2",$compare->getJrnNoteSql()->getp("n_text"),"note not updated and loaded");
-        $this->assertEquals("Test 2",$compare->getNote(),"note not updated, 
match incorrect");
-    }
-}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]