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
57a5101e
Commit
57a5101e
authored
Feb 10, 2008
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes on the new test suite.
parent
04276090
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
TestTest.php
tests/Orm/Component/TestTest.php
+15
-0
someusers.php
tests/fixtures/orm/forum/someusers.php
+0
-14
No files found.
tests/Orm/Component/TestTest.php
View file @
57a5101e
...
@@ -12,4 +12,19 @@ class Orm_Component_TestTest extends Doctrine_OrmTestCase
...
@@ -12,4 +12,19 @@ class Orm_Component_TestTest extends Doctrine_OrmTestCase
{
{
$this
->
assertEquals
(
0
,
0
);
$this
->
assertEquals
(
0
,
0
);
}
}
public
function
testFixture
()
{
$forumUsers
=
$this
->
sharedFixture
[
'connection'
]
->
query
(
"FROM ForumUser u"
);
$this
->
assertEquals
(
2
,
count
(
$forumUsers
));
$forumUsers
[
0
]
->
delete
();
unset
(
$forumUsers
[
0
]);
$this
->
assertEquals
(
1
,
count
(
$forumUsers
));
}
public
function
testFixture2
()
{
$forumUsers
=
$this
->
sharedFixture
[
'connection'
]
->
query
(
"FROM ForumUser u"
);
$this
->
assertEquals
(
2
,
count
(
$forumUsers
));
}
}
}
\ No newline at end of file
tests/fixtures/orm/forum/someusers.php
deleted
100644 → 0
View file @
04276090
<?php
$fixture
=
array
(
'model'
=>
'ForumUser'
,
'rows'
=>
array
(
array
(
'id'
=>
1
,
'username'
=>
'romanb'
),
array
(
'id'
=>
2
,
'username'
=>
'jwage'
)
)
);
\ No newline at end of file
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