Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behat2 #68

Open
wants to merge 62 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
9b0fc64
restructured to support mocking and behat in the future
Dec 16, 2019
289ec55
stylecorrections
Dec 16, 2019
afaa889
added mocking classes
Dec 16, 2019
de301d0
added basic tests
Dec 16, 2019
837b8a4
dont take screenshots on travis. He doesn't like tatt
Dec 16, 2019
82fdddd
added fulltest
Jan 7, 2020
ad07a70
added some behat functions
Jan 8, 2020
5bffd46
formating
Feb 11, 2020
d8a951f
first commit
Jan 8, 2020
37d06d4
added condenser
Feb 11, 2020
cc45cd6
corrected mistake
Jan 15, 2020
dddb32d
removed inefficient condensing methods
Feb 11, 2020
760fb89
Made new condensed scenarios output instead of full output
Feb 11, 2020
7fb9424
fixed bugs
Feb 11, 2020
7e22e2d
added some documentation
Feb 11, 2020
f25661b
added PATH variable for the outputfile
Feb 11, 2020
7bed041
added relative path for generator
Feb 11, 2020
b06ec6d
reran generator
Feb 11, 2020
34b9b61
renamed variable to be better readable
Feb 11, 2020
7862133
Added warnings for no-data-situations
Feb 11, 2020
1740017
supports invalid courses
Feb 11, 2020
8ce3f31
added delayed enrolement
Feb 11, 2020
a038b4d
removed var_dump
Feb 18, 2020
5c12c1d
fixed '0' id main-course
Feb 18, 2020
157c98b
fixed bugs
Feb 20, 2020
42d8f96
implemented behat functionality
Feb 20, 2020
254d126
removed trailing newlines
Feb 20, 2020
249f502
added filecheck to prevent errors from errorhandling
Feb 19, 2020
da382ae
integrated matrix into job
Feb 19, 2020
7545b09
added space to satisfy the codingstyle
Feb 19, 2020
ff2a068
removed codingstyle violations in behat scenarios
Feb 20, 2020
6df211b
added case for the selector being hidden instead of disabled
Feb 20, 2020
46dc313
fixed travis error
Feb 27, 2020
ec5c2ee
fixed exceptions
Feb 27, 2020
a88624d
implemented tutors
Feb 27, 2020
0c951e7
fixed generator
Feb 27, 2020
15c78af
generated new tests
Feb 27, 2020
a1fab97
updated travis
Mar 2, 2020
d3404a5
run travis-behat with pretty format
Mar 2, 2020
c4ae6f6
rebuild stale amd files
Mar 2, 2020
07e4ec3
travis now uses proper behat installation
Mar 2, 2020
cffeee1
reworked tests to work with moodle course table instead of own temp
Apr 18, 2020
a5620e3
fixed bug where a started course could show standardtimecontrols
Apr 18, 2020
79688ea
split generator into text providing steps and "skeleton" code
Apr 18, 2020
2ee1bc6
removed old test
Apr 18, 2020
be1ec8e
removed unnecessary generator steps
Apr 18, 2020
8ecd9af
removed lsfcourseid var and introduced checking for coursetitle
Apr 18, 2020
f4272e4
fixed spelling mistake
Apr 18, 2020
8ac4f5a
removed accidentally pushed pycache
Apr 19, 2020
edb906b
now checking all block checks
Apr 19, 2020
1723719
added README section on testing
Apr 19, 2020
cf0cd3b
unified codingstyle
Apr 19, 2020
683d218
reran generator
Apr 19, 2020
3a77069
fixed styleerrors
Apr 19, 2020
0c4e2ec
integrate into master changes
Apr 27, 2020
59119b9
rewrote tests to work with previous master merge
Apr 27, 2020
631adbc
added missing strings
Apr 27, 2020
7557476
added missing strings
Apr 27, 2020
da9301b
fixed bug in install.xml
Apr 28, 2020
6000927
changed to postgres 9.5
Apr 28, 2020
cb8c2a9
removed vardump
May 11, 2020
9f4ae54
added missing string
May 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed trailing newlines
r.tschu committed Apr 27, 2020
commit 254d126975c558febb8f2c1b703b727354bdf34e
5 changes: 1 addition & 4 deletions block_evasys_sync.php
Original file line number Diff line number Diff line change
@@ -229,9 +229,7 @@ public function get_content() {
// Append this course.
$courses[] = $course;
}

$standardttimemode = (!$ismodeautomated && $recordhasstandardtime && !$record);

$standardttimemode = (!$ismodeautomated && $hasstandardtime && !$record);
// Create the data object for the mustache table.
$data = array(
'href' => $href,
@@ -268,7 +266,6 @@ public function get_content() {
($state == course_evaluation_allocation::STATE_MANUAL and $ismodeautomated)
or ($state < course_evaluation_allocation::STATE_MANUAL and !$ismodeautomated) : false
);

$this->content->text .= $OUTPUT->render_from_template("block_evasys_sync/block", $data);
$this->content->footer = '';
return $this->content;