Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
fc2b7ba8
Commit
fc2b7ba8
authored
Oct 08, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some auditlog tests added
parent
8fb82c2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
AuditLogTestCase.php
tests/AuditLogTestCase.php
+12
-0
run.php
tests/run.php
+1
-2
No files found.
tests/AuditLogTestCase.php
View file @
fc2b7ba8
...
...
@@ -55,7 +55,13 @@ class Doctrine_AuditLog_TestCase extends Doctrine_UnitTestCase
$entity
->
name
=
'zYne 2'
;
$entity
->
save
();
$this
->
assertEqual
(
$entity
->
name
,
'zYne 2'
);
$this
->
conn
->
clear
();
$entity
=
$this
->
conn
->
getTable
(
'VersioningTest'
)
->
find
(
1
);
$this
->
assertEqual
(
$entity
->
name
,
'zYne 2'
);
$this
->
assertEqual
(
$entity
->
version
,
2
);
$entity
->
delete
();
...
...
@@ -65,6 +71,12 @@ class Doctrine_AuditLog_TestCase extends Doctrine_UnitTestCase
$this
->
assertEqual
(
$entity
->
name
,
'zYne 2'
);
$this
->
assertEqual
(
$entity
->
version
,
2
);
$entity
->
revert
(
1
);
$this
->
assertEqual
(
$entity
->
name
,
'zYne'
);
$this
->
assertEqual
(
$entity
->
version
,
1
);
}
public
function
testRevertThrowsExceptionForTransientRecords
()
...
...
tests/run.php
View file @
fc2b7ba8
...
...
@@ -223,6 +223,7 @@ $test->addTestCase($data_types);
$plugins
=
new
GroupTest
(
'Plugin tests: View, Validator, Hook'
);
//$utility->addTestCase(new Doctrine_PessimisticLocking_TestCase());
$plugins
->
addTestCase
(
new
Doctrine_View_TestCase
());
$plugins
->
addTestCase
(
new
Doctrine_AuditLog_TestCase
());
$plugins
->
addTestCase
(
new
Doctrine_Validator_TestCase
());
$plugins
->
addTestCase
(
new
Doctrine_Validator_Future_TestCase
());
$plugins
->
addTestCase
(
new
Doctrine_Validator_Past_TestCase
());
...
...
@@ -312,8 +313,6 @@ $test->addTestCase(new Doctrine_Template_TestCase());
//$test->addTestCase(new Doctrine_IntegrityAction_TestCase());
//$test->addTestCase(new Doctrine_AuditLog_TestCase());
$test
->
addTestCase
(
new
Doctrine_NestedSet_SingleRoot_TestCase
());
// Search tests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment