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
765c06b7
Commit
765c06b7
authored
Oct 13, 2006
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved some tests.
parent
3e6a352a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1127 additions
and
1124 deletions
+1127
-1124
RecordTestCase.php
tests/RecordTestCase.php
+910
-908
RelationAccessTestCase.php
tests/RelationAccessTestCase.php
+217
-216
No files found.
tests/RecordTestCase.php
View file @
765c06b7
...
...
@@ -624,6 +624,8 @@ class Doctrine_RecordTestCase extends Doctrine_UnitTestCase {
$user
->
name
=
"John Locke"
;
$user
->
save
();
$this
->
assertTrue
(
is_numeric
(
$user
->
id
)
&&
$user
->
id
>
0
);
$this
->
assertTrue
(
$user
->
getModified
()
==
array
());
$this
->
assertTrue
(
$user
->
getState
()
==
Doctrine_Record
::
STATE_CLEAN
);
...
...
tests/RelationAccessTestCase.php
View file @
765c06b7
...
...
@@ -42,6 +42,7 @@ class Doctrine_RelationAccessTestCase extends Doctrine_UnitTestCase {
$us
[
1
]
->
MyOtherThing
->
add
(
$o
);
}
// UserOneThings
/* Doctrine assigns the foreign keys automatically
$one_id_gs = array(
array(array(2,3,6,5,1), 1)
);
...
...
@@ -63,7 +64,7 @@ class Doctrine_RelationAccessTestCase extends Doctrine_UnitTestCase {
$uo->user_id = $oth_ids[1];
}
}
*/
$this
->
connection
->
flush
();
$this
->
connection
->
clear
();
}
...
...
@@ -76,7 +77,7 @@ class Doctrine_RelationAccessTestCase extends Doctrine_UnitTestCase {
"MyUserOtherThing"
);
parent
::
prepareTables
();
}
/**
public
function
testOneToOneAggregateRelationFetching
()
{
$coll
=
$this
->
connection
->
query
(
"FROM File_Owner.Data_File WHERE File_Owner.name = 'owner1'"
);
$this
->
assertTrue
(
count
(
$coll
)
==
1
);
...
...
@@ -138,7 +139,7 @@ class Doctrine_RelationAccessTestCase extends Doctrine_UnitTestCase {
$this
->
assertEqual
(
1
,
$file2
->
get
(
'id'
));
}
*/
public
function
testMultipleLeftJoinBranches
()
{
$query
=
"FROM MyUserOtherThing"
;
$other
=
$this
->
connection
->
query
(
$query
);
...
...
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